/* Register Code Page Styles */

/* Hide default title */
h1.title {
    display: none;
}

/* Main Header Container */
#bdx-register-code {
    background: linear-gradient(to bottom, #183973, #1f56a3);
    color: white;
    position: relative;
}

/* Header Content Area */
#bdx-register-code .oxygen-header {
    padding: 60px 0 80px 0;
    margin-bottom: -50px;
    min-height: 320px;
}

#bdx-register-code .oxygen-header h1 {
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    margin-top: 1em;
    font-size: 2em;
}

#bdx-register-code .oxygen-header .lead {
    color: #dbeafe;
    font-size: 16px;
    margin-bottom: 0;
    text-align: center;
}

.slide-content {
    margin-top: -3em;
    z-index: 300;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e8f4fc 0%, #d1e8f6 100%);
    border: 1px solid #b8d4e8;
    border-left: 4px solid #1f56a3;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    color: #1a4a6e;
    font-size: 14px;
    text-align: center;
}

.info-box .glyphicon {
    color: #1f56a3;
}

.info-box a {
    color: #1f56a3;
    text-decoration: underline;
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

/* Form Sections */
.form-section {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 18px; /* Space for absolute error message */
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Highlighted Input for Registration Code */
.input-highlight {
    border: 1px solid #ddd;
    background-color: #f0f4f8;
    font-size: 15px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.input-highlight:focus {
    border-color: #1f56a3;
    box-shadow: 0 0 0 3px rgba(31, 86, 163, 0.15);
    background-color: #fff;
}

/* Section Background */
.section-bg {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 25px;
    border: none;
}

.section-notifications {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-top: 25px;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

/* Form Controls - scoped to register code form only */
.register-code-wrapper .form-control {
    height: 45px;
    box-shadow: none;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f0f4f8;
}

.register-code-wrapper .form-control:focus {
    border-color: #1f56a3;
    box-shadow: 0 0 0 3px rgba(31, 86, 163, 0.1);
    background-color: #fff;
}

/* Labels - scoped to register code form only */
.register-code-wrapper .form-group {
    position: relative;
    padding-bottom: 18px; /* Space for absolute error message */
}

.register-code-wrapper .form-group label {
    font-size: 15px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

/* Required Star */
.required-star {
    color: #dc3545;
    font-weight: bold;
}

/* Helper Text */
.form-text {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.form-text .glyphicon {
    font-size: 11px;
    margin-right: 4px;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

/* Form Footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 15px;
}

.privacy-notice {
    font-size: 12px;
    color: #888;
    flex: 1;
    line-height: 1.6;
}

.privacy-notice .glyphicon {
    color: #28a745;
    margin-right: 5px;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #1f56a3 0%, #183973 100%);
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #183973 0%, #0d2a52 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 86, 163, 0.3);
    color: white;
}

.btn-submit:active {
    transform: translateY(0);
}

/* Error Messages */
.form-error-msg {
    position: absolute;
    bottom: 0;
    left: 0;
    color: #dc3545;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 0;
    margin: 11px 0 11px 0;
}

.form-error-msg.hide {
    visibility: hidden;
    opacity: 0;
}

.form-error-msg:not(.hide) {
    visibility: visible;
    opacity: 1;
}

.form-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* Confirmation Message */
.confirmation-message {
    margin-top: 20px;
}



.confirmation-message .alert {
    border-radius: 8px;
    padding: 20px;
    color: #415d41;
    width: 100%;
    margin: 0;
}

.confirmation-message .glyphicon {
    font-size: 18px;
    /* margin-right: 10px; */
    top: 3px;
}

/* Hide utility - general use */
.hide:not(.form-error-msg) {
    display: none !important;
}

/* Honeypot */
.honeypot {
    position: absolute;
    left: -9999px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
    
    .form-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .privacy-notice {
        order: 2;
        margin-top: 10px;
    }
    
    .btn-submit {
        width: 100%;
        order: 1;
    }
    
    #bdx-register-code .oxygen-header {
        padding: 40px 0 60px 0;
        min-height: 280px;
    }
    
    #bdx-register-code .oxygen-header h1 {
        font-size: 1.6em;
    }
}

/* Select styling for country dropdown */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* Loader animation */
.login-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
