:root {
    --primary-color: #0f2c59;
    /* Navy Blue */
    --secondary-color: #dac0a3;
    /* Beige/Gold */
    --accent-color: #ea5455;
    /* Muted Red */
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --bg-light: #f8f9fa;
}

/* --- PAGE BASE STYLES --- */
body {
    background-color: #f8fafc;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* Hero Section - Corporate Theme */
.gst-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    margin-top: 80px;
    overflow: hidden;
}

.gst-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero-content {
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: #dbeafe;
    max-width: 700px;
    margin: 0 auto;
}

/* Packages Section */
.packages-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.popular-ribbon {
    position: absolute;
    top: 28px;
    right: -40px;
    transform: rotate(45deg);
    background: var(--accent-color);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

.price-tag span {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 400;
}

.features-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 25px;
}

.features-list li {
    margin-bottom: 12px;
    color: #475569;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: #3b82f6;
}

.btn-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    background: var(--primary-color);
    color: white;
}

.btn-select:hover {
    background: #1e40af;
}

.pricing-card.featured .btn-select {
    background: var(--accent-color);
}

/* ── Dark-themed Filing Section ── */
.legal-filing-section {
    padding: 100px 0;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: white;
}

.legal-filing-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Info Side (Documents & Support) ── */
.legal-info-side {
    flex: 1;
    min-width: 320px;
}

.legal-docs-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 120px;
}

.legal-docs-card h3 {
    font-size: 1.2rem;
    color: #f8fafc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-docs-card h3 i {
    color: var(--accent-color);
}

.legal-docs-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.legal-phone-link {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

.legal-phone-link:hover {
    color: #ff8a65;
}

.legal-doc-list {
    list-style: none;
    padding: 0;
}

.legal-doc-list li {
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--accent-color);
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* ── Form Side ── */
.legal-form-side {
    flex: 1.2;
    min-width: 350px;
}

.legal-form-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Form Header */
.legal-form-header {
    margin-bottom: 28px;
}

.legal-form-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #ff8a65);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.legal-form-header p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Form Groups */
.legal-form-group {
    position: relative;
    margin-bottom: 22px;
}

.legal-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Inputs + Textarea */
.legal-form-group input,
.legal-form-group textarea {
    width: 100%;
    padding: 16px 48px 16px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    border-radius: 12px;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    outline: none;
}

.legal-form-group textarea {
    resize: vertical;
    min-height: 120px;
    padding-bottom: 30px;
}

.legal-form-group input::placeholder,
.legal-form-group textarea::placeholder {
    color: transparent;
}

/* Floating Label */
.legal-form-group label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    transition: 0.25s ease;
    background: transparent;
}

.legal-form-group textarea~label {
    top: 18px;
    transform: none;
}

.legal-form-group input:focus~label,
.legal-form-group input:not(:placeholder-shown)~label,
.legal-form-group textarea:focus~label,
.legal-form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 14px;
    font-size: 0.72rem;
    color: var(--accent-color);
    background: #1a2035;
    padding: 0 6px;
    border-radius: 4px;
    transform: none;
}

/* Input Focus Glow */
.legal-form-group input:focus,
.legal-form-group textarea:focus {
    border-color: var(--accent-color);
    background: rgba(234, 84, 85, 0.06);
    box-shadow: 0 0 0 3px rgba(234, 84, 85, 0.12);
}

/* Field Icons */
.legal-field-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.3s;
}

.legal-form-group:focus-within .legal-field-icon {
    color: var(--accent-color);
}

.legal-msg-icon {
    top: 18px;
    transform: none;
}

/* Select Field */
.legal-select-group select {
    width: 100%;
    padding: 16px 48px 16px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: 0.3s;
    box-sizing: border-box;
}

.legal-select-group select option {
    background: #0f172a;
    color: #f1f5f9;
}

.legal-select-group select:focus {
    border-color: var(--accent-color);
    background: rgba(234, 84, 85, 0.06);
    box-shadow: 0 0 0 3px rgba(234, 84, 85, 0.12);
}

.legal-select-label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    transition: 0.25s ease;
    background: transparent;
}

.legal-select-group.has-value .legal-select-label,
.legal-select-group select:focus~.legal-select-label {
    top: -10px;
    left: 14px;
    font-size: 0.72rem;
    color: var(--accent-color);
    background: #1a2035;
    padding: 0 6px;
    border-radius: 4px;
    transform: none;
}

/* Submit Button */
.legal-btn-submit {
    width: 100%;
    padding: 17px;
    background: linear-gradient(135deg, var(--accent-color), #ff8a65);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    margin-top: 6px;
    font-family: 'Poppins', sans-serif;
}

.legal-btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    transition: 0.6s ease;
}

.legal-btn-submit:hover::after {
    left: 160%;
}

.legal-btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(234, 84, 85, 0.4);
}

/* ── Modal & Footer (unchanged but scoped) ── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    animation: legalZoomIn 0.3s;
}

.upi-qr {
    width: 200px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 5px;
}

@keyframes legalZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chatbot Container Fix */
.fastsewa-chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .legal-filing-container {
        flex-direction: column;
    }

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

    .hero-content h1 {
        font-size: 2.2rem;
    }
}