/* Holiday Events Registration Styles */
.holiday-form-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.holiday-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.holiday-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.holiday-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
}

.holiday-form {
    padding: 30px;
}

/* Form Steps Indicator */
.form-steps-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.form-steps-indicator .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    opacity: 0.5;
}

.form-steps-indicator .step.active {
    opacity: 1;
}

.form-steps-indicator .step::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e1e4e8;
    z-index: 1;
}

.form-steps-indicator .step:last-child::after {
    display: none;
}

.form-steps-indicator .step.active::after {
    background: #667eea;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e4e8;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    z-index: 2;
    position: relative;
}

.form-steps-indicator .step.active .step-number {
    background: #667eea;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.form-steps-indicator .step.active .step-label {
    color: #000;
    font-weight: 600;
}

.form-step {
    animation: fadeIn 0.3s ease-in;
}

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

.form-step h3 {
    margin: 0 0 25px 0;
    color: #000;
    font-size: 22px;
    text-align: center;
    font-weight: 600;
}

/* Events Grid */
.events-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.event-card {
    border: 2px solid #e1e4e8;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    background: #fff;
}

.event-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.event-card.selected {
    border-color: #667eea;
    background: #f7f9fc;
}

.event-header h4 {
    margin: 0 0 8px 0;
    color: #000;
    font-size: 18px;
    font-weight: 600;
}

.event-date {
    color: #6c757d;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.meals-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meal-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.meal-option:hover {
    background: #f8f9fa;
}

.meal-option input[type="radio"] {
    margin-left: 10px;
}

.meal-option input[type="radio"]:checked + .meal-name {
    font-weight: 600;
    color: #667eea;
}

.meal-name {
    flex: 1;
    margin: 0 10px;
}

.meal-prices {
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

/* Meal Options Grid */
.meal-options-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.meal-option-card {
    border: 2px solid #e1e4e8;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.meal-option-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.meal-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.meal-option-card input[type="radio"]:checked + .option-content {
    border-color: #667eea;
}

.meal-option-card:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f7f9fc;
}

.option-content h4 {
    margin: 0 0 8px 0;
    color: #000;
    font-size: 18px;
    font-weight: 600;
}

.option-description {
    color: #6c757d;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.option-prices {
    display: flex;
    gap: 15px;
    font-size: 14px;
    font-weight: 500;
}

.price-guest {
    color: #dc3545;
}

.price-student {
    color: #28a745;
}

/* Form Label */
.form-label {
    display: block;
    margin-bottom: 12px;
    color: #000;
    font-weight: 600;
    font-size: 16px;
}

/* Guest Type Selection */
.guest-type-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-guest-type {
    background: #fff;
    border: 2px solid #e1e4e8;
    border-radius: 12px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-guest-type:hover {
    border-color: #667eea;
    background: #f7f9fc;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.15);
}

.btn-guest-type.selected {
    border-color: #667eea;
    background: #f7f9fc;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.guest-type-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.guest-type-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
}

.guest-type-price {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

/* Meal Selection Grid */
.meals-selection-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.meal-checkbox-item {
    border: 2px solid #e1e4e8;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    align-items: center;
}

.meal-checkbox-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.meal-checkbox-item input[type="checkbox"] {
    margin-left: 15px;
    transform: scale(1.2);
}

.meal-checkbox-item:has(input[type="checkbox"]:checked) {
    border-color: #667eea;
    background: #f7f9fc;
}

.meal-item-content {
    flex: 1;
}

.meal-item-content h4 {
    margin: 0 0 5px 0;
    color: #000;
    font-size: 18px;
    font-weight: 600;
}

.meal-description {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* Price Display */
.price-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
}

.price-display h4 {
    margin: 0;
    color: #000;
    font-size: 20px;
}

/* Participants Section */
.participants-section {
    margin-bottom: 30px;
}

.participant-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e1e4e8;
}

.participant-card h4 {
    margin: 0 0 15px 0;
    color: #000;
    font-size: 16px;
    font-weight: 600;
}

.additional-participant {
    position: relative;
}

.remove-participant {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Summary Section */
.summary-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e1e4e8;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: 600;
    font-size: 18px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
}

/* Donation Section */
.donation-section {
    background: #fff8e1;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.donation-section h4 {
    margin: 0 0 15px 0;
    color: #000;
    text-align: center;
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.btn-donation {
    background: #fff;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #856404;
}

.btn-donation:hover {
    background: #ffc107;
    color: #fff;
}

.btn-donation.selected {
    background: #ffc107;
    color: #fff;
}

.custom-donation {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.custom-donation input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ffc107;
    border-radius: 5px;
}

.selected-donation {
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ffc107;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 16px;
}

.final-total {
    background: #e8f4fd;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}

.final-total h4 {
    margin: 0;
    color: #667eea;
    font-size: 22px;
}

.final-amount-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}

.final-amount-display h4 {
    margin: 0;
    color: #000;
    font-size: 24px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #000;
    font-weight: 600;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Summary Sections */
.selected-event-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.selected-event-summary h4 {
    margin: 0 0 5px 0;
    color: #000;
    font-size: 16px;
}

.selected-event-summary p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.price-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.price-summary h4 {
    margin: 0 0 15px 0;
    color: #000;
    font-size: 18px;
    text-align: center;
}

.price-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.price-details span {
    color: #495057;
    font-size: 15px;
}

.total-price {
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

/* Payment Summary */
.payment-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.payment-summary h3 {
    margin: 0 0 15px 0;
    color: #000;
    font-size: 18px;
    text-align: center;
    font-weight: 600;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.summary-row.total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
    font-weight: 600;
    font-size: 18px;
}

/* Payment Methods */
.payment-method-selection {
    margin: 30px 0;
}

.payment-method-selection h4 {
    margin: 0 0 25px 0;
    color: #000;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
}

.payment-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.btn-payment-method {
    background: #fff;
    border: 2px solid #e1e4e8;
    border-radius: 12px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-payment-method:hover {
    border-color: #667eea;
    background: #f7f9fc;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.15);
}

.payment-method-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.payment-method-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
}

.payment-method-desc {
    font-size: 13px;
    color: #6c757d;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f1f3f5;
    color: #495057;
    margin-top: 15px;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-block {
    width: 100%;
    display: block;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

/* Cash Payment Section */
.cash-payment-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.cash-payment-section h3 {
    margin: 0 0 20px 0;
    color: #000;
    font-size: 20px;
    text-align: center;
}

/* Stripe Elements */
#card-element {
    padding: 15px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

#card-element.StripeElement--focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#card-errors {
    color: #dc3545;
    margin-top: 10px;
    font-size: 14px;
}

/* Success & Error Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
}

.success-icon {
    background: #d4edda;
    color: #28a745;
}

.error-icon {
    background: #f8d7da;
    color: #dc3545;
}

.registration-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 10px;
}

.spinner-svg {
    animation: rotate 1s linear infinite;
    width: 100%;
    height: 100%;
}

.spinner-svg circle {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Single Event Form Styles */
.selected-meal-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.selected-meal-info h3 {
    margin: 0;
    color: #667eea;
    font-size: 22px;
    font-weight: 600;
}

.meal-selection-single {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meal-radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.meal-radio-option:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.meal-radio-option input[type="radio"] {
    margin-left: 12px;
}

.meal-radio-option input[type="radio"]:checked + .meal-label {
    color: #667eea;
    font-weight: 600;
}

.meal-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.meal-name {
    font-size: 16px;
}

.meal-price {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.price-info-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid #e1e4e8;
}

.price-info-box h4 {
    margin: 0 0 15px 0;
    color: #000;
    font-size: 18px;
    text-align: center;
}

.price-list {
    display: grid;
    gap: 8px;
}

.price-item {
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
    font-size: 14px;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .holiday-form-container {
        margin: 20px;
        border-radius: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-buttons {
        grid-template-columns: 1fr;
    }
    
    .price-details {
        flex-direction: column;
        text-align: center;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons .btn {
        width: 100%;
    }
}