/* Stamp Duty Calculator Specific Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

/* Header Styles - Force Override with Higher Specificity */
body .main-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05) !important;
    color: #333 !important;
}

body .nav-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 24px !important;
    min-height: 70px !important;
}

/* Logo Styles */
body .logo a {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #204080 !important;
    text-decoration: none !important;
    letter-spacing: -0.5px !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

/* Navigation Links - Force Override with Higher Specificity */
body .nav-links {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    align-items: center !important;
}

body .nav-links li {
    position: relative !important;
}

body .nav-links a {
    color: #333 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    background: transparent !important;
}

body .nav-links a:hover {
    color: #204080 !important;
    background: rgba(32, 64, 128, 0.08) !important;
}

/* Dropdown Menu Styles */
body .dropdown {
    position: relative !important;
}

body .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: white !important;
    min-width: 220px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.2s ease !important;
    padding: 12px !important;
    margin-top: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
}

body .dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
}

body .dropdown-menu a {
    display: block !important;
    padding: 12px 16px !important;
    color: #333 !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
    background: transparent !important;
}

body .dropdown-menu a:hover {
    background: rgba(32, 64, 128, 0.08) !important;
    color: #204080 !important;
}

/* Mobile Menu Styles */
body .mobile-menu-btn {
    display: none !important;
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    color: #333 !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

body .mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body .nav-links {
        display: none !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        flex-direction: column !important;
        padding: 25px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
        gap: 0 !important;
        z-index: 999 !important;
    }

    body .nav-links.active {
        display: flex !important;
    }

    body .nav-links li {
        width: 100% !important;
        border-bottom: 1px solid #eee !important;
    }

    body .nav-links li:last-child {
        border-bottom: none !important;
    }

    body .nav-links a {
        display: block !important;
        padding: 18px 0 !important;
        width: 100% !important;
        font-size: 18px !important;
        color: #333 !important;
        background: transparent !important;
    }

    body .mobile-menu-btn {
        display: block !important;
    }

    body .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #f8f9fa !important;
        margin: 10px 0 !important;
        border: none !important;
    }
}

.nav-links a:hover {
    color: #204080;
    background: rgba(32, 64, 128, 0.08);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #204080;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: #f8f9fa;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.breadcrumb-list a {
    color: #204080;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #666;
    font-size: 14px;
}

.breadcrumb-current {
    color: #666;
    font-size: 14px;
}

/* Page Layout */
.calculator-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.page-header .lead {
    font-size: 20px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
}

.key-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #204080;
    font-weight: 600;
}

.feature i {
    font-size: 18px;
}

/* Calculator Layout */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    padding: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Form Styles */
.calculator-form-inner {
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #204080;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-label.required::after {
    content: " *";
    color: #e74c3c;
}

.input-with-symbol {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: #204080;
    box-shadow: 0 0 0 3px rgba(32, 64, 128, 0.1);
}

.currency-symbol {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
    z-index: 2;
}

.percentage-symbol {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
    z-index: 2;
}

.input-with-symbol .input-field {
    padding-left: 50px;
}

.help-text {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background: #204080;
    border-color: #204080;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.calculate-button {
    flex: 1;
    background: #204080;
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calculate-button:hover {
    background: #1a3366;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 64, 128, 0.3);
}

.reset-button {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e5e5e5;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reset-button:hover {
    background: #e9ecef;
    border-color: #ddd;
}

/* Results Section */
.calculator-results {
    margin-top: 40px;
}

.results-content {
    padding: 32px;
}

.main-result {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 16px;
    margin-bottom: 32px;
}

.result-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.result-value {
    font-size: 48px;
    font-weight: 700;
    color: #204080;
    margin: 0;
}

.secondary-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.result-item .label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.result-item .value {
    font-size: 18px;
    font-weight: 700;
    color: #204080;
}

/* Rate Breakdown */
.rate-breakdown {
    margin-bottom: 32px;
}

.rate-breakdown h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breakdown-table th,
.breakdown-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.breakdown-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.breakdown-table td {
    color: #666;
}

/* Important Notes */
.important-notes {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.important-notes h3 {
    color: #856404;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.important-notes ul {
    margin: 0;
    padding-left: 20px;
}

.important-notes li {
    color: #856404;
    margin-bottom: 8px;
}

/* Next Steps */
.next-steps h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-button:hover {
    background: #204080;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 64, 128, 0.2);
}

.action-button i {
    color: #204080;
    font-size: 18px;
}

.action-button:hover i {
    color: white;
}

/* Info Section */
.info-section {
    margin: 60px 0;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #204080;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 20px 0 12px 0;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.rate-table th,
.rate-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.rate-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.rate-table td {
    color: #666;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.info-card li::before {
    content: "•";
    color: #204080;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 60px 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.faq-header p {
    color: #666;
    font-size: 18px;
}

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

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #204080;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: inherit;
}

.faq-question i {
    color: #204080;
    transition: transform 0.3s ease;
}

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

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

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 24px;
    }

    .page-header h1 {
        font-size: 28px;
        flex-direction: column;
        gap: 8px;
    }

    .page-header .lead {
        font-size: 16px;
    }

    .key-features {
        flex-direction: column;
        gap: 16px;
    }

    .calculator-layout {
        gap: 24px;
    }

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

    .secondary-results {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .result-value {
        font-size: 36px;
    }

    .row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-header,
    .calculator-form-inner,
    .results-content {
        padding: 24px;
    }

    .info-card {
        padding: 24px;
    }

    .faq-section {
        padding: 24px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 25px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 18px 0;
        width: 100%;
        font-size: 18px;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        margin: 18px 0 0 25px;
        background: #f8f9fa;
        border: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Footer Styles */
.main-footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 25px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-section h3 {
    color: #204080;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

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

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #204080;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
    margin: 0;
}
