/* Registration Page Styles */
.registration-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.registration-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.registration-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.registration-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.8), rgba(108, 52, 131, 0.9));
    z-index: -1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

/* Registration Options */
.registration-options {
    padding: 4rem 0;
    background: #f8f9fa;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.option-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8e44ad, #6c3483);
}

.option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #8e44ad;
}

.option-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.option-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.option-card p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.option-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.option-features li {
    padding: 0.5rem 0;
    color: #2c3e50;
}

.option-features i {
    color: #27ae60;
    margin-right: 0.5rem;
}

.option-select-btn {
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.option-select-btn:hover {
    background: linear-gradient(135deg, #6c3483, #8e44ad);
    transform: translateY(-2px);
}

/* Registration Forms */
.registration-forms {
    padding: 4rem 0;
    background: white;
}

.registration-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    color: white;
    padding: 2rem;
    text-align: center;
}

.form-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.form-header p {
    margin: 0;
    opacity: 0.9;
}

/* Form Progress */
.form-progress {
    display: flex;
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    color: #95a5a6;
    position: relative;
}

.progress-step.active {
    color: #8e44ad;
}

.progress-step::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #bdc3c7;
    border-radius: 50%;
}

.progress-step.active::after {
    background: #8e44ad;
}

/* Form Steps */
.form-step {
    padding: 2rem;
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #8e44ad;
    padding-bottom: 0.5rem;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8e44ad;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

/* Checkbox and Radio Styles */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.checkbox-label:hover,
.radio-label:hover {
    background: #f8f9fa;
}

.checkbox-label input,
.radio-label input {
    margin-right: 0.75rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #95a5a6;
    color: white;
}

.btn-prev:hover {
    background: #7f8c8d;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    background: linear-gradient(135deg, #6c3483, #8e44ad);
    transform: translateY(-2px);
}

/* Confirmation Summary */
.confirmation-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

/* Success Modal */
#successModal .modal-content {
    text-align: center;
    max-width: 500px;
}

.success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.success-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: left;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #8e44ad;
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-primary:hover {
    background: #6c3483;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .event-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-progress {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-step::after {
        display: none;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* Enhanced form styles */
.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.radio-group.error,
.checkbox-grid.error {
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 1rem;
}

/* Success modal enhancements */
.success-qr {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.qr-placeholder {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border: 2px dashed #bdc3c7;
}

.qr-placeholder i {
    font-size: 3rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.success-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #27ae60;
}

.success-instructions {
    background: #e8f5e8;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.success-instructions ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.success-instructions li {
    margin-bottom: 0.5rem;
}

/* Print styles */
@media print {
    .main-header,
    .registration-options,
    .form-actions,
    .modal-actions {
        display: none !important;
    }
    
    .registration-form,
    .modal-content {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .success-info,
    .success-instructions {
        break-inside: avoid;
    }
}

/* Loading animation enhancement */
.btn-loading {
    display: none;
}

.submit-donation.loading .btn-text {
    display: none;
}

.submit-donation.loading .btn-loading {
    display: inline;
}

/* Responsive enhancements */
@media (max-width: 480px) {
    .option-card {
        padding: 1.5rem;
    }
    
    .form-step {
        padding: 1rem;
    }
    
    .success-info,
    .success-instructions {
        padding: 1rem;
    }
}


/* Error styling */
.error-highlight {
    border: 2px solid #e74c3c !important;
    border-radius: 8px;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.05);
}

.form-group.error-highlight {
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.05);
}

.radio-group.error-highlight,
.checkbox-grid.error-highlight {
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.05);
}

/* Form step animations */
.form-step {
    transition: all 0.3s ease;
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Make sure form steps are properly displayed */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Debug borders - remove after testing */

.form-step {
    /* border: 1px solid green; */
    min-height: 200px; /* Ensure steps have minimum height */
}

/* Ensure form steps are properly managed */
.form-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Success modal should be hidden by default */
#successModal {
    display: none;
}

/* Button styling fixes */
.btn-next, .btn-prev, .btn-submit {
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next:hover, .btn-prev:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Progress steps */
.progress-step.active {
    color: #8e44ad;
    font-weight: bold;
}

/* Form animations */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}