/* Registration Page Styles */

.registration-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step.active .step-number {
    background-color: #2a63ec;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.available-classes {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.class-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.class-card:hover {
    border-color: #2a63ec;
    box-shadow: 0 4px 12px rgba(42, 99, 236, 0.2);
}

.class-card.selected {
    border-color: #2a63ec;
    background-color: #f0f5ff;
}

.class-card.full {
    opacity: 0.6;
    cursor: not-allowed;
}

.class-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.class-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.class-course-type {
    font-size: 0.9rem;
    color: #666;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background-color: #e0e0e0;
}

.class-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2a63ec;
}

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

.class-detail {
    font-size: 0.9rem;
    color: #555;
}

.class-detail strong {
    color: #333;
}

.class-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.class-status {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #27ae60;
    font-weight: 600;
}

.class-status.waitlist {
    color: #f39c12;
}

.class-status.full {
    color: #e74c3c;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a63ec;
}

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #2a63ec;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #1e4dc4;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.payment-summary {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.payment-summary h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

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

.summary-item:last-child {
    border-bottom: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2a63ec;
}

.payment-container {
    background: white;
    padding: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.payment-container h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

#paypal-button-container {
    margin-top: 20px;
    min-height: 50px;
}

.success-box {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background-color: #27ae60;
    color: white;
    font-size: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
}

.success-box h2 {
    color: #27ae60;
    margin-bottom: 15px;
}

.success-box p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 939px) {
    .form-container {
        padding: 30px 20px;
    }

    .registration-steps {
        gap: 10px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 575px) {
    .form-container {
        padding: 20px 15px;
    }

    .class-header {
        flex-direction: column;
    }

    .class-price {
        margin-top: 10px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Selected Class Banner */
.selected-class-banner {
    background: linear-gradient(135deg, #2a63ec 0%, #1e4dc4 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(42, 99, 236, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.selected-class-banner h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
}

.class-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.class-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.class-info-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

.class-info-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.class-info-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1.6;
    opacity: 0.95;
}

@media (max-width: 575px) {
    .selected-class-banner {
        padding: 20px;
    }

    .selected-class-banner h3 {
        font-size: 1.2rem;
    }

    .class-info-grid {
        grid-template-columns: 1fr;
    }
}
