/* ===== Pages Stylesheet ===== */
/* Shared styles for Privacy, Terms, Disclaimer, Contact pages */

/* ===== Navigation Header ===== */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: var(--primary-light);
}

.nav-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--text-primary);
}

/* ===== Page Content ===== */
.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.page-header .last-updated,
.page-header .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== Content Card ===== */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.content-section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}

.content-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.content-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section ul,
.content-section ol {
    color: var(--text-secondary);
    padding-left: 24px;
    margin: 16px 0;
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.content-section a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== Disclaimer Alert ===== */
.disclaimer-alert {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.alert-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.alert-content h3 {
    color: var(--accent-orange);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.alert-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info h2,
.contact-form-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-info>p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.contact-item a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent);
}

.note-box {
    padding: 20px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.note-box h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.note-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ===== Contact Form ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 24px;
    padding-right: 48px;
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(99, 102, 241, 0.6);
}

/* ===== FAQ Section ===== */
.faq-section {
    margin-bottom: 40px;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== Page Footer ===== */
.page-footer {
    margin-top: 40px;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Article Styles (SDLT Explained) ===== */
.article-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-intro {
    text-align: center;
    padding: 50px 40px;
}

.intro-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.article-intro h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.lead-text strong {
    color: var(--accent);
}

.highlight-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    text-align: center;
    padding: 40px;
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.highlight-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.highlight-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.highlight-card strong {
    color: var(--primary-light);
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.region-card {
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
}

.region-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.region-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

.region-card strong {
    color: var(--accent);
}

.cta-box {
    margin-top: 24px;
    padding: 24px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.cta-box p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px -8px rgba(99, 102, 241, 0.5);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.6);
}

.disclaimer-card {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.2);
    text-align: center;
}

.disclaimer-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.disclaimer-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.disclaimer-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.disclaimer-card .note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

/* ===== Rates Table Styles ===== */
.rates-table-card {
    overflow: hidden;
}

.rates-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.rates-table th,
.rates-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.rates-table th {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rates-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.rates-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.08);
}

.rates-table tbody tr:last-child td {
    border-bottom: none;
}

.rate-standard {
    color: var(--accent-green) !important;
    font-weight: 700;
}

.rate-additional {
    color: var(--accent-orange) !important;
    font-weight: 700;
}

.table-note {
    padding: 16px 20px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin-top: 16px;
}

.table-note p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-note {
    padding: 16px 20px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(34, 211, 238, 0.2);
    margin-top: 16px;
}

.info-note p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== Criteria Grid (Second Homes) ===== */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.criteria-item {
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-light);
    text-align: center;
}

.criteria-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.criteria-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.criteria-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== Comparison Cards ===== */
.comparison-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.comparison-card {
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid;
}

.comparison-card.bad {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.comparison-card.good {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.comparison-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.comparison-card.bad h4 {
    color: var(--accent-red);
}

.comparison-card.good h4 {
    color: var(--accent-green);
}

.comparison-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ===== FAQ Section ===== */
.content-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 10px 0;
    padding-left: 0;
    border-left: none;
}

.content-section h3:first-of-type {
    margin-top: 16px;
}

.content-section h3+p {
    margin-bottom: 16px;
    padding-left: 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .content-card {
        padding: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .disclaimer-alert {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 20px;
    }

    /* Article page mobile improvements */
    .criteria-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .comparison-cards {
        grid-template-columns: 1fr;
    }

    .rates-table-wrapper {
        margin: 15px -20px;
        padding: 0 20px;
        overflow-x: auto;
    }

    .rates-table th,
    .rates-table td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .article-intro {
        padding: 24px;
    }

    .intro-icon,
    .highlight-icon {
        font-size: 2.5rem;
    }

    .lead-text {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.25rem;
    }

    .content-section h3 {
        font-size: 1rem;
    }

    .info-note,
    .table-note {
        padding: 14px 16px;
    }

    .region-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-header {
        flex-direction: column;
        text-align: center;
    }

    .back-btn {
        width: 100%;
        justify-content: center;
    }
}