/**
 * Alive Church Camp 2026 - Booking Form Styles
 * Mobile-first responsive design
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-color: #eb008b;
    --primary-dark: #c7006f;
    --secondary-color: #d40080;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-dark: #1f2937;
    --text-medium: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: #1a1a1a;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 650px;
    background: url('/public/assets/images/poster-background-echo2026.png') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
    animation: overlayPulse 8s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
}

.hero-logo {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInScale 1.2s ease-out 0.3s forwards;
}

.hero-logo img {
    width: auto;
    max-height: 160px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.hero-verse {
    margin-bottom: 0px;
    color: #d8d2bd;
    font-family: Georgia, 'Times New Roman', serif;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero-verse p {
    margin: 0;
    font-size: 14px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-verse .verse-text {
    font-size: 18px;
    font-style: italic;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.3s forwards;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.6s forwards;
}

.hero-cta {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    box-shadow: 0 4px 75px rgb(211 199 170);
    cursor: pointer;
    font-family: inherit;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.9s forwards, ctaPulse 3s ease-in-out 3s infinite;
}

.hero-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(235, 0, 139, 0.6);
    animation: none;
}

/* ============================================
   Video Modal
   ============================================ */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: block;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 960px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.video-modal-close:hover {
    transform: rotate(90deg);
    opacity: 0.8;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: black;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-modal-cta {
    margin-top: 30px;
    text-align: center;
}

.video-modal-cta .btn {
    background: var(--primary-color);
    color: white;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(235, 0, 139, 0.4);
    font-family: inherit;
}

.video-modal-cta .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(235, 0, 139, 0.6);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes heroZoom {
    0% {
        background-size: 100%;
    }
    100% {
        background-size: 105%;
    }
}

@keyframes overlayPulse {
    0% {
        background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    }
    100% {
        background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
    }
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 4px 75px rgb(211 199 170);
    }
    50% {
        box-shadow: 0 4px 90px rgb(211 199 170), 0 0 30px rgba(235, 0, 139, 0.4);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        border-left-color: var(--primary-color);
        box-shadow: 0 0 0 rgba(235, 0, 139, 0);
    }
    50% {
        border-left-color: var(--primary-color);
        box-shadow: -4px 0 20px rgba(235, 0, 139, 0.3);
    }
}

/* ============================================
   Reduced Motion Preference
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 0;
    min-height: calc(100vh - 60vh);
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    background: #2a2a2a;
    color: white;
    padding: 60px 40px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out 0.5s forwards;
}

.sidebar-logo img {
    width: auto;
    max-height: 80px;
}

.event-info {
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out 0.8s forwards;
}

.event-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.event-detail {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-detail:last-child {
    border-bottom: none;
}

.event-detail-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.event-detail-value {
    font-size: 18px;
    font-weight: 500;
    color: white;
    line-height: 1.5;
}

.call-section {
    background: rgba(235, 0, 139, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 20px;
    margin-top: 40px;
    border-radius: var(--radius-sm);
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out 1.1s forwards, glowPulse 4s ease-in-out 2s infinite;
}

.call-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.call-section p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ============================================
   Form Container
   ============================================ */
.form-container {
    background: #f5f5f5;
    padding: 60px 50px;
    overflow-y: auto;
}

/* ============================================
   Form Sections
   ============================================ */
.form-section {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}

.form-section:first-of-type {
    margin-top: 0;
}

.form-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-description {
    color: var(--text-medium);
    font-size: 14px;
    margin-bottom: 25px;
}

/* ============================================
   Form Elements
   ============================================ */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: var(--danger-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

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 12 12'%3E%3Cpath fill='%236b7280' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

/* ============================================
   Attendee Cards
   ============================================ */
#attendees-container {
    margin-bottom: 20px;
}

.attendee-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.attendee-card:hover {
    border-color: var(--primary-color);
}

.attendee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.attendee-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-remove-attendee {
    background: transparent;
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-attendee:hover {
    background: var(--danger-color);
    color: white;
}

/* ============================================
   Radio & Checkbox Groups
   ============================================ */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-card {
    display: block;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-card:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.02);
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-card input[type="radio"]:checked + .radio-content {
    color: var(--primary-color);
}

.radio-card:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.radio-content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.radio-content p {
    font-size: 13px;
    color: var(--text-medium);
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: var(--bg-light);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* ============================================
   Info Boxes
   ============================================ */
.info-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 15px;
}

.info-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.bank-details {
    margin-bottom: 12px;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.bank-detail-row:last-child {
    border-bottom: none;
}

.bank-detail-row .label {
    font-weight: 500;
    color: var(--text-medium);
}

.bank-detail-row .value {
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
}

.bank-note {
    font-size: 13px;
    color: var(--text-medium);
    margin: 0;
}

#installment-details {
    font-size: 14px;
}

.installment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.installment-row:last-child {
    border-bottom: none;
}

/* ============================================
   Price Summary
   ============================================ */
.price-summary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 25px;
}

.price-summary h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.summary-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 16px;
}

.summary-row.total {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 24px;
    font-weight: 700;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
}

/* ============================================
   Form Actions
   ============================================ */
.form-actions {
    margin-top: 30px;
    margin-bottom: 40px;
}

#add-attendee-btn {
    width: 100%;
}

/* ============================================
   Loading State
   ============================================ */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-secondary {
    background: var(--bg-light);
    color: var(--text-medium);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .booking-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        padding: 40px 30px;
    }

    .sidebar-logo,
    .event-info,
    .call-section {
        animation: none;
        opacity: 1;
    }

    .form-container {
        padding: 40px 30px;
    }
}

@media (max-width: 767px) {
    .hero {
        height: 60vh;
        min-height: 500px;
        animation: none; /* Disable zoom on mobile for performance */
    }

    .hero::before {
        animation: none;
    }

    .hero-logo img {
        max-height: 80px;
    }

    .hero-verse p {
        font-size: 12px;
    }

    .hero-verse .verse-text {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        padding: 14px 36px;
        font-size: 15px;
    }

    .sidebar {
        padding: 30px 20px;
    }

    .form-container {
        padding: 30px 20px;
    }

    .form-section {
        padding: 20px;
    }

    .form-section h2 {
        font-size: 20px;
    }

    .attendee-card {
        padding: 20px;
    }

    .price-summary {
        padding: 20px;
    }

    .summary-row.total {
        font-size: 20px;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: -45px;
    }

    .video-modal-cta .btn {
        padding: 14px 36px;
        font-size: 15px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    body {
        background: white;
    }

    .btn {
        display: none;
    }

    .form-section {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-2 {
    margin-top: 20px;
}

.font-bold {
    font-weight: 700;
}
