/**
 * Course Registration Form Styles
 */

/* Form Container */
.course-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.course-form__title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: #222;
}

.course-form__section {
    margin-bottom: 20px;
}

.course-form__section-title {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.course-form__field {
    margin-bottom: 15px;
}

.course-form__field label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.course-form__field input,
.course-form__field textarea,
.course-form__field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.course-form__field input:focus,
.course-form__field textarea:focus,
.course-form__field select:focus {
    outline: none;
    border-color: #f5e503;
    box-shadow: 0 0 0 3px rgba(245, 229, 3, 0.2);
}

/* Format options */
.course-form__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.course-form__option {
    flex: 1;
    min-width: 120px;
}

.course-form__option input {
    display: none;
}

.course-form__option span {
    display: block;
    padding: 12px 15px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.course-form__option input:checked + span {
    border-color: #f5e503;
    background: #f5e503;
    color: #000;
    font-weight: 600;
}

.course-form__option span:hover {
    border-color: #f5e503;
}

/* Price display */
.course-form__price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 25px 0;
}

.course-form__price-label {
    font-size: 16px;
    color: #555;
}

.course-form__price-value {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

/* Submit button */
.course-form__submit {
    width: 100%;
    padding: 15px;
    background: #f5e503;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.course-form__submit:hover {
    background: #e0d000;
    transform: translateY(-2px);
}

.course-form__submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.course-form__note {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #888;
}

/* Success state */
.course-form__success {
    text-align: center;
    padding: 40px 20px;
}

.course-form__success-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 20px;
    background: #4CAF50;
    color: #fff;
    font-size: 40px;
    border-radius: 50%;
}

.course-form__success h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.course-form__success p {
    color: #666;
    font-size: 16px;
}

/* Modal */
.course-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}

.course-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.course-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.course-modal__content {
    position: relative;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    z-index: 1;
}

.course-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 1;
}

.course-modal__close:hover {
    color: #333;
}

/* Inline form section on page */
.course-order-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.course-order-section .course-form {
    max-width: 600px;
}

.course-order-section .course-form__title {
    color: #222;
}

/* Price Calculator addon */
.course-calculator {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.course-calculator__title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.course-calculator__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.course-calculator__option:hover {
    border-color: #f5e503;
}

.course-calculator__option.selected {
    border-color: #f5e503;
    background: #fffde7;
}

.course-calculator__option-name {
    font-weight: 500;
}

.course-calculator__option-price {
    font-weight: 600;
    color: #000;
}

.course-calculator__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f5e503;
    border-radius: 8px;
    margin-top: 20px;
}

.course-calculator__total-label {
    font-size: 18px;
    font-weight: 600;
}

.course-calculator__total-value {
    font-size: 28px;
    font-weight: 700;
}

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

    .course-form__options {
        flex-direction: column;
    }

    .course-form__option {
        min-width: 100%;
    }

    .course-form__price-value {
        font-size: 20px;
    }

    .course-modal__content {
        width: 95%;
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
}
