/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Webinar Form Modal Styles */
#webinar-form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.webinar-form-container {
    background: #fff;
    padding: 20px;
    max-width: 500px;
    margin: 100px auto;
    border-radius: 4px;
    position: relative;
}

#close-webinar-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Combined Form Section */
#combined-form-section {
    padding: 20px 0;
}

#form-title {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
    text-align: center;
}

#form-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

/* Form Styles */
#combined-webinar-form .form-field {
    margin-bottom: 15px;
}

#combined-webinar-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

#combined-webinar-form input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

#combined-webinar-form input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

#combined-webinar-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Registration Fields */
#registration-fields {
    margin-bottom: 20px;
}

#registration-fields .form-field-wrapper {
    display: flex;
    gap: 10px;
}

#registration-fields .form-field-wrapper .form-field {
    flex: 1;
}

.form-field-wrapper {
    display: flex;
    gap: 10px;
}

.form-field-wrapper .form-field {
    width: 50%;
}

/* OTP Field */
#otp-field {
    /* background-color: #f8f9fa;
    border: 1px solid #e9ecef; */
    border-radius: 8px;
    padding: 20px 0;
    margin: 20px 0;
    text-align: center;
}

#otp-field:not([style*="display: none"]) {
    display: block;
}

#otp-field label {
    font-size: 16px;
    color: #495057;
    margin-bottom: 15px;
    display: block;
    font-weight: 600;
}

#otp_code {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    /* border: 2px solid #0073aa !important;
    background-color: #f0f8ff; */
}

#otp_code:focus {
    border-color: #005177 !important;
    box-shadow: 0 0 8px rgba(0, 115, 170, 0.5) !important;
}

/* Success Section */
#success-section {
    text-align: center;
    padding: 20px;
}

.success-icon {
    font-size: 48px;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

#success-section h2 {
    color: #28a745;
    margin: 15px 0;
    font-size: 24px;
}

#success-section p {
    color: #666;
    margin: 15px 0 25px 0;
    font-size: 16px;
}

.success-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.success-button:hover {
    background: #218838;
}

/* Field Error Styles */
.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
    font-weight: 500;
    line-height: 1.2;
}

.field-error:not(:empty) {
    display: block;
}

/* Button Styles */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: #f9a02c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    background: #f2a62f;
}

.btn-primary:disabled {
    background: #ffcc7d;
    cursor: not-allowed;
    opacity: 1;
}

/* Button Container */
.button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.button-container button {
    flex: 1;
}

/* Success Message */
.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.success-message:not(:empty) {
    display: block;
}

/* Disabled Input */
input:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 600px) {
    .webinar-form-container {
        margin: 50px 20px;
        padding: 15px;
    }

    #form-title {
        font-size: 20px;
    }

    .form-field-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .form-field-wrapper .form-field {
        width: 100%;
    }

    #registration-fields .form-field-wrapper {
        flex-direction: column;
        gap: 0;
    }

    #registration-fields .form-field-wrapper .form-field {
        width: 100%;
    }

    .button-container {
        flex-direction: column;
    }

    .button-container button {
        width: 100%;
    }
}
