input, select {overflow: hidden !important;}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 120px);
}

.modal-footer {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

#preview-modal .modal-dialog {
    max-width: 800px;
    max-height: 85vh;
}

.preview-content {
    font-size: 0.875rem;
    line-height: 1.5;
}

.preview-section {
    margin-bottom: 1.5rem;
}

.preview-section:last-child {
    margin-bottom: 0;
}

.preview-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.25rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-item .label {
    font-weight: 500;
    color: var(--text-color);
}

.preview-item .value {
    font-weight: 600;
    color: var(--primary-color);
}

.preview-totals {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.preview-totals .preview-item {
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    font-size: 1rem;
}

.preview-totals .preview-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
    }

    .modal-dialog {
        max-width: 95vw;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .preview-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .preview-content {
        font-size: 0.8rem;
    }

    .preview-section h4 {
        font-size: 0.9rem;
    }
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}
textarea {
    padding: 5px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 20px;}
h3 { font-size: 1.5rem; margin-top: 20px;}
h4 { font-size: 1.25rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.navbar-auth {
    display: flex;
    gap: 1rem;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    padding: 1.5rem 0;
    text-align: center;
}

.hero-title {
    font-size: 1.875rem;
    margin-bottom: 0.375rem;
}

.hero-subtitle {
    font-size: 0.975rem;
    opacity: 0.9;
    margin: 0 auto;
}

.calculator-section {
    padding: 2rem 0;
    background-color: var(--bg-light);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

.calculator-form {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.calculator-form h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    padding: 0.5rem 0.625rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.input-error {
    border-color: var(--error-color) !important;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calc-header h2 {
    margin-bottom: 0;
}

.calc-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background-color: var(--bg-light);
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-report-btn:hover {
    border-color: var(--error-color);
    color: var(--error-color);
    background-color: #fef2f2;
}

.country-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.country-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.5rem 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    background-color: var(--white);
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.country-tab__flag {
    font-size: 1.05rem;
    line-height: 1;
}

.country-tab:hover {
    border-color: var(--primary-color);
}

.country-tab.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.calc-section {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.calc-section:last-of-type {
    margin-bottom: 0;
}

.calc-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calc-section .form-row:last-child {
    margin-bottom: 0;
}

.form-row--single {
    grid-template-columns: 1fr;
}

@media (min-width: 769px) {
    .form-row--single .form-group {
        max-width: calc(50% - 0.375rem);
    }
}

.calculator-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.input-wrap {
    position: relative;
}

.input-wrap .input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrap input,
.input-wrap select {
    width: 100%;
    padding-left: 2.25rem;
}

.form-group:focus-within .input-icon {
    color: var(--primary-color);
}

.calc-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.625rem;
}

.form-row + .calc-checkbox-group {
    margin-top: 0.75rem;
}

.scheme-note {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--primary-color);
    background: var(--bg-light);
    color: var(--text-color, #1f2937);
    font-size: 0.95rem;
}

.calc-checkbox-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 0.625rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.calc-checkbox-card:hover {
    border-color: var(--primary-color);
}

.calc-checkbox-card:has(input:checked) {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.calc-checkbox-card:has(input:focus-visible) {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.calc-checkbox-card input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.calc-checkbox-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
}

.calc-checkbox-card:has(input:checked) .calc-checkbox-card__icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.calc-checkbox-card__text {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.calc-checkbox-card .info-icon {
    margin-left: auto;
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

@media (max-width: 480px) {
    .calc-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.exchange-rates {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
}

.calculator-results {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    min-width: 0;
}

.calculator-results h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.calculator-results h3 i {
    color: var(--primary-color);
}
.utilsbor p {
    text-align: center;
}
.utilsbor--first p {
    text-align: left;
    font-weight: 600;
}
.results-summary {
    margin-bottom: 1.25rem;
    padding: 1.1rem 1.25rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.results-summary .result-item {
    padding: 0;
    border-bottom: none;
    font-size: inherit;
}

.results-summary .result-item .label,
.results-summary .result-item .value {
    color: var(--white);
}

.results-summary .result-item .value {
    white-space: nowrap;
}

.result-total--main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.result-total:not(.result-total--main) {
    font-size: 0.875rem;
    opacity: 0.9;
}

.results-breakdown {
    margin-bottom: 1.25rem;
}

.results-breakdown__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.breakdown-group {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
}

.breakdown-group:last-child {
    margin-bottom: 0;
}

.breakdown-group h5 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.result-item .label {
    color: var(--text-light);
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.result-item .value {
    font-weight: 600;
    color: var(--text-color);
    text-align: right;
}

.results-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.results-actions .btn {
    justify-content: center;
    padding: 0.7rem 0.75rem;
    font-size: 0.875rem;
}

@media (min-width: 769px) {
    .results-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

.main__text .container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main__text h2 {
    color: #34495e;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #3498db;
    background: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
}

.main__text h3 {
    color: #2980b9;
    margin-top: 25px;
    margin-bottom: 15px;
}

.main__text .formula {
    background: #f8f9fa;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
}

.main__text .law-reference {
    background: #e8f4f8;
    padding: 10px;
    border-left: 4px solid #17a2b8;
    margin: 15px 0;
    font-style: italic;
    border-radius: 0 5px 5px 0;
}

.main__text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main__text th, .main__text td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.main__text th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

.main__text tr:nth-child(even) {
    background-color: #f2f2f2;
}

.main__text tr:hover {
    background-color: #e8f4f8;
}

.main__text .important {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.main__text .warning {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.main__text .calculator-section {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #28a745;
}

.main__text ul, .main__text ol {
    padding-left: 30px;
}

.main__text li {
    margin-bottom: 8px;
}

.calculation-info {
    background-color: var(--bg-light);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--warning-color);
    font-size: 0.8rem;
}

.calculation-info ul {
    list-style-position: inside;
    color: var(--text-light);
    margin: 0;
    padding-left: 0;
}

.results-note {
    background-color: var(--bg-light);
    padding: 0.875rem 1.1rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--warning-color);
    font-size: 0.8rem;
}

.results-note p {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.results-note p i {
    color: var(--warning-color);
}

.results-note ul {
    list-style: none;
    color: var(--text-light);
    margin: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.results-note li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.results-note li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--success-color);
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 0.8rem;
}

.features {
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer {
    background-color: #1f2937;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.2s;
}

.social-link:hover {
    background-color: var(--primary-hover);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

.disclaimer {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: var(--white);
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 1000;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background-color: var(--success-color);
}

.notification-error {
    background-color: var(--error-color);
}

.notification-info {
    background-color: var(--primary-color);
}

.saved-calculations {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.saved-calculations h3 {
    margin-bottom: 0.5rem;
}

.saved-calculations .help-text {
    color: var(--text-light);
    margin-bottom: 1rem;
}

#saved-calculations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.saved-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-light);
}

.saved-main {
    display: flex;
    flex-direction: column;
}

.saved-main .saved-name {
    color: var(--text-color);
}

.saved-main .saved-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.saved-actions {
    display: flex;
    gap: 0.5rem;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(700px, 92vw);
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 1.625rem;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .navbar-menu.show {
        display: flex;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-auth {
        flex-direction: column;
    }

    .navbar-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .calculator-form,
    .calculator-results {
        padding: 1rem;
    }

    .hero {
        padding: 1rem 0;
    }

    .features,
    .calculator-section {
        padding: 2rem 0;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

.profile-section {
    padding: 2rem 0;
    background-color: var(--bg-light);
    min-height: 80vh;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-section .profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-sidebar {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    height: fit-content;
    box-shadow: var(--shadow);
}

.profile-nav {
    margin-bottom: 1.5rem;
}

.profile-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.profile-nav .nav-item:hover,
.profile-nav .nav-item.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.profile-actions {
    display: flex;
    gap: 0.5rem;
}

.profile-content {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.content-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.calculations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculation-item {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: box-shadow 0.2s;
}

.calculation-item:hover {
    box-shadow: var(--shadow);
}

.calculation-info {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.calculation-main h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.calculation-details {
    color: var(--text-light);
    font-size: 0.875rem;
}

.calculation-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.calculation-actions {
    display: flex;
    gap: 0.5rem;
}

.no-calculations {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.no-calculations i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.steps-timeline {
    position: relative;
    padding-left: 2rem;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-hover));
}

.step-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.step-number {
    position: absolute;
    left: -2rem;
    top: 1rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    z-index: 2;
}

.step-content {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow);
}

.step-content h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.step-content ul {
    margin-top: 1rem;
}

.step-content li {
    margin-bottom: 0.5rem;
}

.documents-grid,
.costs-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.document-category,
.cost-category {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.document-category h3,
.cost-category h3 {
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

.document-category ul {
    margin: 0;
    padding-left: 1.25rem;
}

.document-category li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
    color: var(--text-color);
}

.document-category li:last-child {
    margin-bottom: 0;
}

.cost-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-name {
    min-width: 200px;
    font-weight: 500;
}

.cost-value {
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

.faq-search {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-color);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question h3 {
    margin: 0;
    color: var(--text-color);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.2s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-contact {
    margin-top: 3rem;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.cta-card h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.cta-card .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-card .btn-primary:hover {
    background: var(--bg-light);
}

.error-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
    min-height: 60vh;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-illustration {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.error-content h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.error-content h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.helpful-links {
    text-align: left;
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.helpful-links h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.helpful-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.helpful-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.helpful-links a:hover {
    color: var(--primary-hover);
}

@media (max-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        order: 2;
    }

    .profile-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    .documents-grid,
    .costs-breakdown {
        grid-template-columns: 1fr;
    }

    .steps-timeline {
        padding-left: 1rem;
    }

    .steps-timeline::before {
        left: 20px;
    }

    .step-number {
        left: -1.5rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-item {
        padding-left: 2rem;
    }
}

.offcanvas {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
}

.offcanvas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.offcanvas-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100%;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offcanvas.show { pointer-events: auto; }
.offcanvas.show .offcanvas-backdrop { opacity: 1; }
.offcanvas.show .offcanvas-panel { transform: translateX(0); }

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.offcanvas-body {
    padding: 1rem 1.25rem 2rem;
    overflow-y: auto;
}

.offcanvas-section { margin-bottom: 1.25rem; }
.offcanvas-section span  {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}
.offcanvas-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.benefits-list { list-style: none; padding-left: 0; display: grid; gap: 0.5rem; }
.benefits-list li { display: flex; align-items: center; gap: 0.5rem; }

.offcanvas {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
}

.offcanvas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.offcanvas-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100%;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offcanvas.show { pointer-events: auto; }
.offcanvas.show .offcanvas-backdrop { opacity: 1; }
.offcanvas.show .offcanvas-panel { transform: translateX(0); }

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.offcanvas-body {
    padding: 1rem 1.25rem 2rem;
    overflow-y: auto;
}

.offcanvas-section { margin-bottom: 1.25rem; }
.offcanvas-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.benefits-list { list-style: none; padding-left: 0; display: grid; gap: 0.5rem; }
.benefits-list li { display: flex; align-items: center; gap: 0.5rem; }

.saved-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.saved-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.saved-item-header h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.saved-item-actions {
    display: flex;
    gap: 0.5rem;
}

.saved-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.saved-item-param {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.param-label {
    color: var(--text-light);
}

.param-value {
    font-weight: 500;
    color: var(--text-dark);
}

.no-data, .error {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.calculator-explainer { background: var(--white); padding: 1rem 0 1rem; }
.calculator-explainer h2 { text-align: center; margin-bottom: 2rem; }
.explainer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.explainer-block { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 0.75rem; padding: 1rem 1.25rem; }
.explainer-block ul { padding-left: 1.25rem; }

.breadcrumbs {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #adb5bd;
    font-size: 12px;
}

.breadcrumb-separator i {
    font-size: 10px;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 8px 0;
        font-size: 13px;
    }

    .breadcrumb-separator {
        margin: 0 6px;
    }
}

.calculations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.calculations-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.calculations-stats .calculations-count {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.calculations-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.calculations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculation-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.calculation-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.calculation-info {
    flex: 1;
    margin-right: 1rem;
}

.calculation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.calculation-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.calculation-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.calculation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.detail-item .label {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-item .value {
    color: var(--text-dark);
    font-weight: 600;
}

.detail-item .value.total-amount {
    color: var(--primary);
    font-size: 1rem;
}

.calculation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#page-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .calculations-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: auto;
    }

    .calculation-item {
        flex-direction: column;
        gap: 1rem;
    }

    .calculation-info {
        margin-right: 0;
    }

    .calculation-actions {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }

    .calculation-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .helpful-links ul {
        grid-template-columns: 1fr;
    }

    .faq-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .category-btn {
        white-space: nowrap;
    }

    .calculation-info {
        flex-direction: column;
        gap: 1rem;
    }

    .calculation-actions {
        flex-wrap: wrap;
    }
}

.form-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.form-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.checkbox-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    position: relative;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    user-select: none;
}

.checkbox-item label i.fas {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 0.25rem;
    cursor: help;
}

.info-icon i {
    color: #6b7280;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.info-icon:hover i {
    color: var(--primary-color);
}

.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 30px;
    left: -270px;
    margin-bottom: 8px;
    padding: 0.75rem;
    background: var(--dark);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: normal;
    width: 280px;
    text-align: left;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.info-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.info-icon:hover::after,
.info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}
#usage_type, #usage_type option {
    max-width: 100%;
    width: 100%;
}
.info-icon::after {
    color: #000;
    background: #fff;
}
.page-header{
    margin-top: 20px;
    margin-bottom: 20px;
}
.how-it-works-section{
    margin-top: 20px;
}
.costs-section {
    margin-top: 20px;
}
.tips-section {
    margin-top: 20px;
    margin-bottom: 20px;
}
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.tip-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, var(--shadow));
}
.tip-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}
.tip-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}
.tip-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 868px) {
    .checkbox-group {
        gap: 0.8rem;
    }
}
@media (max-width: 768px) {
    .checkbox-group {
        gap: 0.75rem;
    }

    .checkbox-item label {
        font-size: 0.9rem;
    }

    .info-icon::after {
        width: 250px;
        font-size: 0.8rem;
    }
}
@media (max-width: 991px) {
    .navbar-brand .logo {
        font-size: 1.1rem;
    }
}
@media (max-width: 921px) {
    .navbar-brand {
        flex: 1 0 25%;
    }

    nav.navbar {
        flex-wrap: wrap;
    }
    .navbar-brand .logo {
        text-align: center;
        display: inline-block;
        font-size: 1.5rem;
    }

    .navbar-brand {
        text-align: center;
    }

    .navbar-menu {
        width: 100%;
        justify-content: space-between;
    }
}
@media (max-width: 875px) {
    .cost-item {
        flex-direction: column;
        align-items: normal;
    }

    .cost-value {
        text-align: left;
    }
}
.table-wrap {
  display: inline-block;
}

.table-wrap {
  text-align: center;
  display: inline-block;
  background-color: #fff;
  color: #000;
}
.table-wrap table {
     min-width: 800px;
}
@media screen and (max-width: 860px) {
  .table-wrap {
    overflow-y: scroll;
    overflow-x: scroll;
    display: block;
  }
}

.contact-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.contact-info h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.contact-info h3 {
    color: var(--text-color);
    margin: 2rem 0 1rem;
    font-size: 1.25rem;
}

.features-list,
.target-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.features-list li,
.target-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.features-list .fas {
    color: var(--success);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-notice {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 2rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.contact-form-wrapper > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.char-counter {
    color: var(--text-light);
    font-size: 0.875rem;
    display: block;
    margin-top: 0.5rem;
}

.required {
    color: var(--danger);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.5;
    margin: 0;
    font-weight: normal;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.form-status {
    margin-top: 1.5rem;
}

.alert {
    margin-top: 10px;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success);
}

.alert-error {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger);
}

.input.invalid,
input.invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-bg);
}

.faq-section {
    padding: 3rem 0;
    background: var(--white);
}

.faq-section h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.mini-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.mini-faq-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.mini-faq-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.mini-faq-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.faq-more {
    text-align: center;
    margin-top: 2rem;
}

.faq-more p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.faq-more a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.faq-more a:hover {
    text-decoration: underline;
}

.privacy-content {
    padding: 3rem 0;
    background: var(--white);
}

.privacy-document {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    line-height: 1.7;
}

.privacy-intro {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.privacy-document h2 {
    color: var(--primary);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    font-size: 1.5rem;
}

.privacy-document h3 {
    color: var(--text-color);
    margin: 2rem 0 1rem;
    font-size: 1.25rem;
}

.privacy-document ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-document li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.privacy-table th,
.privacy-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.privacy-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.privacy-table tr:last-child td {
    border-bottom: none;
}

.privacy-table tr:nth-child(even) {
    background: var(--bg-light);
}

.consent-block {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem 0;
}

.consent-block p strong {
    color: var(--primary);
    font-size: 1.125rem;
}

.consent-note {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.consent-note .fas {
    color: var(--warning);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.privacy-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .privacy-document {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .privacy-document h2 {
        font-size: 1.25rem;
    }

    .privacy-table {
        font-size: 0.875rem;
    }

    .privacy-table th,
    .privacy-table td {
        padding: 0.75rem 0.5rem;
    }
}

.brokers-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.brokers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.brokers-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.brokers-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.brokers-filters {
    padding: 2rem 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.filters-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 2rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.filter-group label i {
    color: var(--primary-color);
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
}

.brokers-listing {
    padding: 3rem 0;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.results-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.brokers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 3rem;
}

.broker-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.broker-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.broker-card.featured {
    position: relative;
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
    transform: scale(1.02);
}

.broker-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, #f59e0b 50%, var(--accent-color) 100%);
    border-radius: 1rem 1rem 0 0;
}

.featured-badge {
    position: absolute;
    top: -8px;
    right: 1rem;
    background: #fff;
    color: black;
    padding: 0.4rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

.broker-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.broker-logo-container {
    flex-shrink: 0;
    width: 80px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.broker-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.25rem;
}

.broker-logo-placeholder {
    color: var(--text-muted);
    font-size: 2rem;
}

.broker-info {
    flex: 1;
    min-width: 0;
}

.broker-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.broker-type {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.broker-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.broker-rating .stars {
    display: flex;
    gap: 0.2rem;
}

.broker-rating .stars i {
    color: #e5e7eb;
    font-size: 0.9rem;
}

.broker-rating .stars i.active {
    color: #fbbf24;
}

.rating-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.broker-description {
    margin-bottom: 1.5rem;
}

.broker-description p {
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.broker-cities {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.broker-cities i {
    color: var(--primary-color);
    flex-shrink: 0;
}

.broker-contacts {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.contact-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.broker-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
}

.broker-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-results-icon {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 2rem;
}

.no-results h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn,
.pagination-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number {
    justify-content: center;
    min-width: 2.75rem;
}

.pagination-btn:hover,
.pagination-number:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-ellipsis {
    padding: 0.75rem 0.5rem;
    color: var(--text-muted);
}

.become-partner {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    position: relative;
}

.become-partner-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.become-partner-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
}

.become-partner h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.become-partner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.partner-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

#contactBrokerModal .modal-content {
    max-width: 500px;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    background: white;
}

.contact-option:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-option i {
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .brokers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .brokers-hero {
        padding: 3rem 0;
    }

    .brokers-hero h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-actions {
        justify-content: center;
    }

    .brokers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .broker-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .broker-logo-container {
        width: 100px;
        height: 150px;
    }

    .broker-actions {
        flex-direction: column;
    }

    .partner-benefits {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .pagination-numbers {
        gap: 0.25rem;
    }

    .pagination-number {
        padding: 0.5rem 0.75rem;
        min-width: 44px;
        justify-content: center;
    }
}

.city-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.city-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="citygrid" width="8" height="8" patternUnits="userSpaceOnUse"><path d="M 8 0 L 0 0 0 8" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23citygrid)"/></svg>');
    opacity: 0.4;
}

.city-hero .container {
    position: relative;
    z-index: 2;
}

.city-hero .hero-content {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.city-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.city-hero .hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.city-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.city-stats .stat-item {
    text-align: center;
}

.city-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.city-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.city-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.city-filters {
    padding: 2rem 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.city-filters .filters-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: end;
}

.city-brokers {
    padding: 3rem 0;
}

.city-brokers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.city-broker-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.city-broker-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.city-broker-card.featured {
    position: relative;
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
    transform: scale(1.02);
}

.city-contacts {
    margin-bottom: 2rem;
}

.contact-block {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.contact-block:last-child {
    margin-bottom: 0;
}

.broker-website {
    margin-bottom: 1.5rem;
}

.website-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.website-link:hover {
    color: var(--text-color);
}

.city-info {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
}

.city-info-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.city-info h2 {
    color: var(--text-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-item {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-item h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.info-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

.cta-section {
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.cta-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .city-hero {
        padding: 3rem 0;
    }

    .city-hero h1 {
        font-size: 2rem;
    }

    .city-hero .hero-description {
        font-size: 1rem;
    }

    .city-stats {
        gap: 2rem;
    }

    .city-stats .stat-number {
        font-size: 1.5rem;
    }

    .city-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-item i {
        font-size: 2rem;
    }

    .city-filters .filters-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .city-brokers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .city-broker-card {
        padding: 1.5rem;
    }

    .contact-block {
        padding: 0.75rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-item {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 2rem;
    }

    .city-info h2 {
        font-size: 1.5rem;
    }
}

.broker-profile-hero {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    position: relative;
}

.broker-profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
}

.profile-header {
    display: flex;
    gap: 2rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.profile-logo-container {
    position: relative;
    flex-shrink: 0;
}

.profile-logo {
    width: 120px;
    height: 180px;
    object-fit: contain;
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
}

.profile-logo-placeholder {
    width: 120px;
    height: 180px;
    background: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
    box-shadow: var(--shadow-lg);
}

.profile-logo-container .featured-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f59e0b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: var(--shadow-md);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--text-color);
}

.profile-type {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-rating .stars {
    display: flex;
    gap: 0.3rem;
}

.profile-rating .stars i {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

.profile-rating .stars i.active {
    color: #fbbf24;
}

.rating-text {
    font-size: 1rem;
    opacity: 0.9;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.broker-profile-content {
    padding: 3rem 0;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-main {
    min-width: 0;
}

.profile-main h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.75rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.about-section {
    margin-bottom: 3rem;
}

.about-content {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.1rem;
}

.contacts-section {
    margin-bottom: 3rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-header h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin: 0;
}

.contact-card .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.contact-card .contact-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.modal-content {
    background: #fff;
}
.no-reviews button.btn.btn-primary {
    margin-top: 20px;
}

.profile-actions .btn {
    background-color: var(--primary-color);
    color: var(--white);
}
.contact-card .contact-item a, .contact-card .contact-item span {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card .contact-item a:hover {
    color: var(--primary-color);
}

.reviews-section {
    margin-bottom: 3rem;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.reviews-stats {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.stats-overview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

.avg-rating {
    text-align: center;
}

.rating-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.avg-rating .stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.avg-rating .stars i {
    color: #e5e7eb;
    font-size: 1.2rem;
}

.avg-rating .stars i.active {
    color: #fbbf24;
}

.total-reviews {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-row {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    gap: 1rem;
    align-items: center;
}

.rating-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rating-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: right;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

.author-info time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.review-rating .stars {
    display: flex;
    gap: 0.2rem;
}

.review-rating .stars i {
    color: #e5e7eb;
    font-size: 0.9rem;
}

.review-rating .stars i.active {
    color: #fbbf24;
}

.review-content {
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 1rem;
}

.no-reviews {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-reviews i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.no-reviews h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.profile-sidebar .sidebar-widget h3 {
    color: var(--text-color);
}

.sidebar-widget h3, .profile-sidebar .calculator-widget h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.widget-item {
    display: flex;
    gap: 1rem;
    align-items: start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-item:last-child {
    border-bottom: none;
}

.widget-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.widget-item div {
    flex: 1;
    min-width: 0;
    word-break: break-all;
    overflow-wrap: break-word;
}

.widget-item .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.widget-item .value {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.widget-item .value:hover {
    color: var(--primary-color);
}

.calculator-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    color: white;
    text-align: center;
}

.calculator-widget h3 {
    color: white;
    margin-bottom: 1rem;
}

.calculator-widget p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.5;
}

.widget-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.help-widget p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    color: #e5e7eb;
    font-size: 2rem;
    transition: color 0.3s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #fbbf24;
}

.rating-input input:checked ~ label {
    color: #fbbf24;
}

@media (max-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-sidebar {
        order: -1;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .stats-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .broker-profile-hero {
        padding: 2rem 0;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .profile-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .profile-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .reviews-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .review-header {
        flex-direction: column;
        gap: 1rem;
        align-items: start;
    }

    .review-author {
        width: 100%;
    }

    .rating-row {
        grid-template-columns: 80px 1fr 30px;
        gap: 0.5rem;
    }
}
.features p, .main__text p {
    margin-bottom: 10px;
}

.features a, .main__text a {
    text-decoration: none;
    border-bottom: 1px dashed;
    color: #3961ea;
}

.feature-card p {
    color: #000;
    text-align: center;
}
.main__text h2 {
    margin-top: 0;
}
.directions {
  margin: 32px 0;
}

.directions__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.directions__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.directions__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.directions__card:hover,
.directions__card.is-active {
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.directions__flag {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
}

.directions__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.directions__hint {
  font-size: 11px;
  color: #6b7280;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .directions__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .directions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.calculation-formula {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 0.1rem;
}
.actual-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0faf4;
    border: 1px solid #b7e4c7;
    border-left: 4px solid #2d9e5f;
    border-radius: 8px;
    padding: 14px 18px;
}

.actual-badge__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #2d9e5f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.actual-badge__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.actual-badge__text strong {
    font-size: 15px;
    color: #1a1a1a;
}

.actual-badge__text span {
    font-size: 13px;
    color: #555;
}

@media (max-width: 480px) {
    .actual-badge {
        padding: 12px 14px;
        gap: 10px;
    }

    .actual-badge__text strong {
        font-size: 14px;
    }

    .actual-badge__text span {
        font-size: 12px;
    }
}
.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 1rem;
  line-height: 1.5;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert strong {
  font-weight: 600;
}
.article {
    padding: 0 12px;
}

.article li {
    margin-left: 20px;
}
.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}
.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}
.result-total--main {
    flex-direction: row;
    order: 1;
}

.result-item:last-child {
    flex-direction: column;
    order: 0;
}

span#total-cost-without-car {
    font-size: 1.75rem;
    font-weight: 700;
}

.results-summary {
    display: flex;
    flex-direction: column;
}
.article__toc {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.75rem 2rem;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.article-body .article__toc h2 {
margin-top: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 1.25rem;
}

.article-body .article__toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  counter-reset: toc-counter;
  margin-bottom: 0;
  padding-left: 0;
}

.article__toc ol li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  counter-increment: toc-counter;
  margin-bottom: 0;
}

.article__toc ol li::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 600;
  color: #d1d5db;
  min-width: 1.4rem;
  text-align: right;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.article__toc ol li a {
  display: block;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #111827;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 7px;
  transition: background 0.15s ease, color 0.15s ease;
}

.article__toc ol li a:hover {
  background: #f0fdf4;
  color: #059669;
}

@media (max-width: 480px) {
  .article__toc {
    padding: 1.25rem;
    border-radius: 10px;
  }
}

.article-body  table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-block: 1.5rem;
}

.article-body table tbody tr:first-child th,
.article-body table thead tr th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  text-align: left;
  padding: 0 1rem 0.75rem;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

.article-body table td {
  padding: 0.75rem 1rem;
  color: #111827;
  vertical-align: top;
  border-bottom: 1px solid #f3f4f6;
}

.article-body table tbody tr:nth-child(even) td {
  background: #f9fafb;
}

.article-body table td:first-child {
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
}

.article-body table tbody tr:hover td {
  background: #f0fdf4;
}

.article-body table tbody tr:last-child td {
  border-bottom: none;
}

.article-body .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.article-body .table-wrap table {
  margin-block: 0;
}

.article-body .table-wrap table tbody tr:first-child th {
  padding-top: 1.25rem;
}

.article-body .table-wrap table tbody tr:last-child td {
  padding-bottom: 1.25rem;
}

.article-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}
.article-layout > * {
  min-width: 0;
}

@media (max-width: 767px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: normal;
  }
  table th,
  table td {
    white-space: normal;
  }
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}
img, iframe, video {
  max-width: 100%;
  height: auto;
}

.country-examples {
    margin: 1.25rem 0 1.5rem;
}

.country-examples .table-responsive {
    overflow-x: auto;
}

.country-examples__table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.country-examples__table th,
.country-examples__table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.country-examples__table th {
    background: var(--bg-light);
    font-weight: 600;
    white-space: nowrap;
}

.country-examples__table small {
    color: var(--text-light);
}

.country-examples__note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}
