/* ===========================================
   Catering Inquiry & Booking — HungryPages Demo
   Standalone styles (no parent CSS dependency)
   =========================================== */

:root {
    --bg: #0F0F1A;
    --bg-card: #232340;
    --bg-card-alt: #1A1A2E;
    --text: #F0F0F0;
    --text-muted: #A0A0B8;
    --primary: #FF6B35;
    --primary-hover: #FF8555;
    --accent: #FBBF24;
    --border: #2E2E4A;
    --error: #EF4444;
    --success: #22C55E;
    --radius: 12px;
    --radius-sm: 8px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
}

img {
    max-width: 100%;
}

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

/* ===========================================
   Top Bar
   =========================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.top-bar-brand:hover {
    color: var(--primary);
}

.top-bar-brand strong {
    color: var(--primary);
}

.brand-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.app-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

/* ===========================================
   Hero
   =========================================== */
.hero {
    padding: 140px 24px 80px;
    text-align: center;
    background: linear-gradient(180deg, #1A1A2E 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    color: #fff;
}

/* ===========================================
   Section Titles
   =========================================== */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

/* ===========================================
   Packages
   =========================================== */
.packages {
    padding: 80px 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.package-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
    position: relative;
}

.package-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.3);
}

.package-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.12);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 0 0 0 var(--radius);
}

.package-header {
    padding: 32px 28px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.package-name {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.package-price {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
}

.package-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.package-body {
    padding: 24px 28px 32px;
}

.package-min {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.package-features {
    list-style: none;
}

.package-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.package-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

/* ===========================================
   Form Section
   =========================================== */
.form-section {
    padding: 80px 0;
}

.form-group-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.form-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.req {
    color: var(--primary);
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field input[type="time"],
.form-field select,
.form-field textarea {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.form-field input.invalid,
.form-field select.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A0A0B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.error-msg {
    font-size: 0.78rem;
    color: var(--error);
    min-height: 18px;
    margin-top: 4px;
}

/* Radio & Checkbox groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.radio-group.horizontal {
    gap: 20px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: var(--primary);
    color: var(--text);
}

.radio-label input,
.checkbox-label input {
    display: none;
}

.radio-custom,
.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-label input:checked ~ .radio-custom,
.checkbox-label input:checked ~ .checkbox-custom {
    border-color: var(--primary);
}

.radio-label input:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 6px;
    height: 10px;
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radio-label input:checked ~ .radio-custom + span,
.checkbox-label input:checked ~ .checkbox-custom + span {
    color: var(--text);
}

.radio-label:has(input:checked),
.checkbox-label:has(input:checked) {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.06);
    color: var(--text);
}

/* Estimated total */
.estimated-total {
    margin-top: 12px;
    padding: 14px 18px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--accent);
}

/* Submit */
.form-submit {
    text-align: center;
    margin-top: 12px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    background: var(--primary);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
}

.btn-arrow {
    width: 20px;
    height: 20px;
}

/* ===========================================
   What Happens Next
   =========================================== */
.next-steps {
    padding: 80px 0;
    background: var(--bg-card-alt);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 40px 28px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 12px;
    right: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 107, 53, 0.08);
    line-height: 1;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    margin-bottom: 20px;
}

.step-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ===========================================
   Testimonials
   =========================================== */
.testimonials {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.25s;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.stars svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.testimonial-card blockquote {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-author strong {
    font-size: 0.95rem;
    color: var(--text);
}

.testimonial-author span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ===========================================
   Bottom CTA
   =========================================== */
.bottom-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, #1A1A2E 100%);
}

.bottom-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

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

.bottom-cta p strong {
    color: var(--accent);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===========================================
   Success Modal
   =========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.modal p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal-close-btn {
    padding: 12px 36px;
    background: var(--primary);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Checkmark animation */
.modal-checkmark {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
}

.modal-checkmark svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke: var(--success);
    stroke-width: 2;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: checkmark-circle 0.6s ease-in-out forwards;
    animation-delay: 0.1s;
}

.checkmark-check {
    stroke: var(--success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmark-check 0.4s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes checkmark-circle {
    to { stroke-dashoffset: 0; }
}

@keyframes checkmark-check {
    to { stroke-dashoffset: 0; }
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 900px) {
    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-desc {
        font-size: 0.95rem;
    }

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

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

    .form-group-section {
        padding: 24px 18px;
    }

    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .top-bar-right {
        gap: 8px;
    }

    .app-name {
        display: none;
    }

    .bottom-cta h2 {
        font-size: 1.3rem;
    }

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

    .radio-group,
    .checkbox-group {
        flex-direction: column;
    }

    .radio-group.horizontal {
        flex-direction: row;
    }
}
