:root {
    --primary-color: #3B82F6;
    --secondary-color: #8B5CF6;
    --accent-color: #10B981;
    --bg-gradient-start: #F0F4FF;
    --bg-gradient-end: #E8F0FE;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --card-bg-color: rgba(255, 255, 255, 0.95);
    --card-text-color: #1F2937;
    --shadow-sm: 0 2px 8px rgba(59, 130, 246, 0.08);
    --shadow-md: 0 4px 16px rgba(59, 130, 246, 0.12);
    --shadow-lg: 0 8px 32px rgba(59, 130, 246, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    animation: slideDown 0.6s ease-out;
}

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

.header img {
    max-width: 220px;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.header h1 {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.2em;
    color: var(--text-light);
    font-weight: 400;
}

/* Loading Spinner */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(59, 130, 246, 0.1);
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 1.1em;
    color: var(--text-light);
    font-weight: 500;
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #B91C1C;
    padding: 20px 30px;
    border-radius: 16px;
    margin: 20px;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border: 2px solid #FCA5A5;
}

.step {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Event Types Grid */
.event-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background: var(--card-bg-color);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    color: var(--card-text-color);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.event-card:hover::before {
    transform: scaleX(1);
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.event-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5em;
    color: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.event-card:hover .event-icon {
    transform: scale(1.1) rotate(5deg);
}

.event-card h3 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--card-text-color);
}

.event-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    min-height: 60px;
    line-height: 1.5;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.95em;
    color: var(--text-light);
    font-weight: 500;
}

.event-details div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Selected Event Info */
.selected-event-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 16px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--primary-color);
}

.selected-event-badge h3 {
    margin-bottom: 8px;
    font-size: 1.4em;
    font-weight: 700;
}

.selected-event-badge p {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Elements */
.date-time-selection {
    background: var(--card-bg-color);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    color: var(--card-text-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.05em;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.05em;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Price Summary */
.price-summary {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.price-summary h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.4em;
    font-weight: 700;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.15em;
    padding: 10px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.price-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.3em;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid rgba(59, 130, 246, 0.3);
}

/* Booking Summary */
.booking-summary {
    background: var(--card-bg-color);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    color: var(--card-text-color);
}

.booking-summary h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-color);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.15em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    width: 100%;
    justify-content: center;
    padding: 18px;
    font-size: 1.25em;
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.back-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(-5px);
}

/* Terms */
.terms {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.terms label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95em;
    line-height: 1.6;
}

.terms input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.terms a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.terms a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Confirmation */
.confirmation-box {
    text-align: center;
    padding: 60px 30px;
    background: var(--card-bg-color);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    color: var(--card-text-color);
}

.success-icon {
    font-size: 6em;
    color: var(--accent-color);
    margin-bottom: 30px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-box h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 800;
}

.booking-number {
    font-size: 1.4em;
    margin: 30px 0;
    padding: 20px 30px;
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border-radius: 12px;
    display: inline-block;
    font-weight: 700;
    color: var(--primary-color);
}

.payment-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
}

.payment-info h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.payment-amount {
    font-size: 2.5em;
    color: var(--primary-color);
    margin: 25px 0;
    font-weight: 800;
}

.payment-deadline {
    margin-top: 25px;
    color: var(--text-light);
    font-size: 1.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .event-types-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header h1 {
        font-size: 2.2em;
    }

    .header p {
        font-size: 1em;
    }

    .event-card {
        padding: 30px 20px;
    }

    .event-icon {
        width: 80px;
        height: 80px;
        font-size: 2em;
    }

    .confirmation-box {
        padding: 40px 20px;
    }

    .confirmation-box h1 {
        font-size: 2em;
    }

    .payment-amount {
        font-size: 2em;
    }
}

/* Additional polish */
::selection {
    background: var(--primary-color);
    color: white;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gradient-start);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}
