/* Noteskart Attestation Services - Theme Stylesheet Overrides */

:root {
    --primary: #1e40af; /* Majestic Royal Blue */
    --primary-rgb: 30, 64, 175;
    --secondary: #0d9488; /* Official MEA Teal */
    --accent: #b45309; /* Seal/Apostille Gold */
    --dark: #f8fafc;
    --darker: #ffffff;
    --darker-rgb: 255, 255, 255;
    --card: rgba(255, 255, 255, 0.85);
    --card-border: rgba(30, 64, 175, 0.08);
    --text: #0f172a;
    --text-secondary: #475569;
    --success: #10b981;
    --warning: #f59e0b;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), #d97706);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 10px 30px rgba(30, 64, 175, 0.03), 0 1px 3px rgba(30, 64, 175, 0.01);
    --font: 'Inter', sans-serif;
}

body.dark-theme {
    --primary: #3b82f6; /* Trust Blue */
    --primary-rgb: 59, 130, 246;
    --secondary: #14b8a6; /* Teal */
    --accent: #f59e0b; /* Amber/Gold */
    --dark: #080c14;
    --darker: #0f1422;
    --darker-rgb: 15, 20, 34;
    --card: rgba(15, 20, 34, 0.65);
    --card-border: rgba(59, 130, 246, 0.15);
    --text: #f9fafb;
    --text-secondary: #9ca3af;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Top Back-To-Noteskart Banner Bar */
.top-back-bar {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1002;
    font-weight: 500;
}

.top-back-bar a.back-link {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.top-back-bar a.back-link:hover {
    color: #3b82f6;
    transform: translateX(-3px);
}

/* Adjust main navbar padding when top bar exists */
.navbar {
    top: 36px;
}

.navbar.scrolled {
    top: 0;
}

/* Trust Seal Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.trust-badge-item i {
    font-size: 1.1rem;
    color: var(--accent);
}

/* Tracking Timeline Interface */
.tracking-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.tracking-input-card {
    margin-bottom: 36px;
    text-align: center;
}

.tracking-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 20px auto 0;
}

.tracking-form input {
    flex-grow: 1;
    padding: 14px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-family: var(--font);
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

.tracking-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.15);
}

.tracking-timeline {
    margin-top: 32px;
    padding: 24px;
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--card-border);
}

.tracking-timeline-header {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tracking-status-badge.received { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.tracking-status-badge.processing { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.tracking-status-badge.in-transit { background: rgba(13, 148, 136, 0.15); color: #0d9488; }
.tracking-status-badge.delivered { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.timeline-steps {
    position: relative;
    padding-left: 36px;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 15px;
    bottom: 8px;
    width: 2px;
    background: var(--card-border);
    z-index: 1;
}

.timeline-step {
    position: relative;
    padding-bottom: 30px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-bullet {
    position: absolute;
    left: -29px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--dark);
    border: 3px solid var(--card-border);
    z-index: 2;
    transition: var(--transition);
}

.timeline-step.completed .timeline-bullet {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.timeline-step.current .timeline-bullet {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(30, 64, 175, 0.4);
    animation: pulseMarker 1.8s infinite;
}

@keyframes pulseMarker {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.5); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(30, 64, 175, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 64, 175, 0); }
}

.timeline-info {
    display: flex;
    flex-direction: column;
}

.timeline-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-trigger {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    color: var(--text);
    transition: var(--transition);
}

.faq-trigger:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.03);
}

.faq-chevron {
    transition: transform 0.4s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-trigger {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: rgba(var(--primary-rgb), 0.01);
    border: 1px solid transparent;
    border-top: none;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    transition: max-height 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 24px;
    border-color: var(--primary);
}

/* Table Style for Fees */
.fees-table-container {
    overflow-x: auto;
    margin-top: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
    background: var(--card);
}

.fees-table th, .fees-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--card-border);
}

.fees-table th {
    background: rgba(var(--primary-rgb), 0.05);
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
}

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

.fees-table tr:hover td {
    background: rgba(var(--primary-rgb), 0.02);
}

.fees-table .highlight-tatkal {
    font-weight: 700;
    color: var(--accent);
}

/* Hero Badge Overrides */
.hero-badge {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    color: var(--primary);
}

body.dark-theme .hero-badge {
    color: #93c5fd;
}

/* Contact Details Alignments */
.contact-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.contact-meta-card {
    text-align: center;
    padding: 30px 20px;
}

.contact-meta-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.contact-meta-card h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-meta-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .contact-meta-grid {
        grid-template-columns: 1fr;
    }
    .tracking-form {
        flex-direction: column;
    }
}
