/* ============================================================
   V I Key® — Shared Order Page Styles
   Used by weddings, engagements, parties & events order pages
   ============================================================ */

/* --- Theme accents per event type --- */
body[data-event-type="weddings"] {
    --accent: #b76e79;
    --accent-light: #f4d8dc;
    --accent-mid: #d49aa0;
    --accent-dark: #8a4f57;
    --hero-grad: linear-gradient(135deg, #fdf2f5 0%, #f9e8e0 40%, #f7e7ce 100%);
    --hero-pattern: radial-gradient(circle at 20% 30%, rgba(183,110,121,.08) 0, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(154,140,124,.08) 0, transparent 50%);
    --section-alt: #faf6f3;
}
body[data-event-type="engagements"] {
    --accent: #c9a227;
    --accent-light: #f5edd6;
    --accent-mid: #d4af37;
    --accent-dark: #9a7c1a;
    --hero-grad: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 40%, #3d2e3a 100%);
    --hero-pattern: radial-gradient(circle at 15% 25%, rgba(212,175,55,.12) 0, transparent 45%),
                    radial-gradient(circle at 85% 75%, rgba(232,180,184,.10) 0, transparent 50%);
    --section-alt: #faf8f1;
}
body[data-event-type="parties"] {
    --accent: #9b59b6;
    --accent-light: #f0e6f5;
    --accent-mid: #c8a2c8;
    --accent-dark: #7d3c98;
    --hero-grad: linear-gradient(135deg, #fef0f5 0%, #fde8e0 40%, #f5e6f0 100%);
    --hero-pattern: radial-gradient(circle at 25% 20%, rgba(155,89,182,.08) 0, transparent 50%),
                    radial-gradient(circle at 75% 80%, rgba(255,183,160,.10) 0, transparent 50%);
    --section-alt: #faf5fa;
}
body[data-event-type="events"] {
    --accent: #2d6a8e;
    --accent-light: #e0eef5;
    --accent-mid: #3aafa9;
    --accent-dark: #1e4a66;
    --hero-grad: linear-gradient(135deg, #f0f6fa 0%, #e8f0f5 40%, #e0eef0 100%);
    --hero-pattern: radial-gradient(circle at 20% 30%, rgba(45,106,142,.06) 0, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(58,175,169,.06) 0, transparent 50%);
    --section-alt: #f5f8fa;
}

/* --- Base reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #2a2a2a;
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Hero --- */
.order-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--hero-grad);
    position: relative;
    overflow: hidden;
    padding: 4rem 1.5rem;
}
.order-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-pattern);
    pointer-events: none;
}
.order-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    animation: fadeUp 0.8s ease-out;
}
.order-brand {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.order-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
}
body[data-event-type="engagements"] .order-hero h1 { color: #f5edd6; }
.order-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #555;
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
body[data-event-type="engagements"] .order-subtitle { color: #c8c0d0; }
.order-cta {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--accent);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.order-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0,0,0,0.18);
    text-decoration: none;
}

/* --- Section base --- */
.order-section {
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.order-section.alt { background: var(--section-alt); max-width: 100%; }
.order-section.alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.order-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-align: center;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}
.order-section > p.section-intro {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

/* --- How it works --- */
.order-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.order-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.order-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-dark);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.order-step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: #1a1a1a; }
.order-step p { color: #666; font-size: 0.95rem; }

/* --- Package cards --- */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}
.package-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 2px solid transparent;
    transition: all 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--accent-light);
}
.package-card.featured {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.package-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
}
.package-card h3 {
    font-size: 1.4rem;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
}
.package-cards {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}
.package-cards small {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
}
.package-divider {
    height: 1px;
    background: var(--accent-light);
    margin: 1.5rem 0;
}
.package-features {
    list-style: none;
    flex-grow: 1;
}
.package-features li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.package-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}
.package-features li.no::before { content: '—'; color: #ccc; }
.package-features li.no { color: #aaa; }
.package-btn {
    margin-top: 1.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}
.package-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.package-card.featured .package-btn {
    background: var(--accent-dark);
}

/* --- Feature grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.feature-item {
    text-align: center;
    padding: 1.5rem 1rem;
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.feature-item h4 {
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
}
.feature-item p { font-size: 0.9rem; color: #666; }

/* --- Order form --- */
.order-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.order-form-wrap label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.35rem;
    margin-top: 1.25rem;
}
.order-form-wrap label:first-child { margin-top: 0; }
.order-form-wrap input,
.order-form-wrap select,
.order-form-wrap textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}
.order-form-wrap input:focus,
.order-form-wrap select:focus,
.order-form-wrap textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.order-form-wrap textarea { resize: vertical; min-height: 100px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-row > div { display: flex; flex-direction: column; }
.form-row label { margin-top: 0; }
.order-submit {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}
.order-submit:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.order-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.form-feedback {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}
.form-feedback.success { background: #e8f5e9; color: #2e7d32; display: block; }
.form-feedback.error { background: #ffebee; color: #c62828; display: block; }

/* --- FAQ --- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}
.faq-question:hover { color: var(--accent-dark); }
.faq-question .faq-icon {
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: #555;
    font-size: 0.95rem;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

/* --- Footer --- */
.order-footer {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #1a1a1a;
    color: #999;
}
.order-footer a { color: #ccc; }
.order-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.order-footer .footer-brand {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #666;
}

/* --- Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.order-section { animation: fadeUp 0.6s ease-out; }

/* --- Responsive --- */
@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .order-form-wrap { padding: 1.5rem; }
    .package-card { padding: 2rem 1.5rem; }
    .order-hero { min-height: 60vh; padding: 3rem 1.5rem; }
}
