/* ========================================
   Register — Refined Crimson Theme
   Matches login-theme.css style
   ======================================== */

/* ==================== STEP INFO ==================== */
.step-info {
    position: relative;
    margin-bottom: 26px !important;
    padding-bottom: 20px !important;
    z-index: 1;
}

.step-title {
    font-family: 'Kanit', sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
    color: #ec1b1b !important;
    text-align: center !important;
    margin-bottom: 8px !important;
    text-shadow: none !important;
}

.step-description {
    font-family: 'Kanit', sans-serif !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-align: center !important;
    line-height: 1.65 !important;
    margin-bottom: 18px !important;
}

/* ==================== PROGRESS BAR ==================== */
.step-progress {
    position: relative;
    margin-top: 16px !important;
}

.progress-bar {
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    border-radius: 99px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    box-shadow: none !important;
}

.progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #b91c1c, #ec1b1b) !important;
    border-radius: 99px !important;
    transition: width 0.4s ease !important;
    box-shadow: none !important;
}

.progress-fill::after {
    display: none !important;
}

.step-text {
    font-family: 'Kanit', sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
    color: rgba(255, 255, 255, 0.42) !important;
    text-align: right !important;
    margin-top: 4px !important;
}

/* ==================== FORM LABEL ==================== */
.form-label {
    display: block !important;
    font-family: 'Kanit', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0.2px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    margin-bottom: 8px !important;
    padding-left: 2px !important;
}

/* ==================== INPUT ICON ==================== */
.register-form .form-group .input-icon {
    top: auto !important;
    bottom: 14px !important;
    transform: none !important;
}

/* ==================== OTP REFERENCE ==================== */
.otp-reference {
    text-align: center !important;
    margin: 0 0 16px 0 !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
}

.otp-reference small {
    font-family: 'Kanit', sans-serif !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

.otp-reference span {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    color: #ec1b1b !important;
    text-shadow: none !important;
}

/* ==================== RESEND BUTTON ==================== */
.btn-resend {
    width: 100% !important;
    padding: 11px 16px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    font-family: 'Kanit', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0.2px !important;
    cursor: pointer !important;
    margin-bottom: 14px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.btn-resend:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.btn-resend:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

/* ==================== COPYRIGHT ==================== */
.copyright {
    font-family: 'Kanit', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    color: rgba(255, 255, 255, 0.28) !important;
    text-align: center !important;
    margin-top: 20px !important;
}

/* ==================== SPARKLES ==================== */
.sparkle {
    filter: drop-shadow(0 0 6px rgba(236, 27, 27, 0.6)) !important;
}

/* ==================== BIRTHDATE / CUSTOM SELECT ==================== */
.custom-select-trigger {
    background: #1c1c1f !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-family: 'Kanit', sans-serif !important;
    padding: 13px 16px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.custom-select-trigger:hover {
    background: #1c1c1f !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}

.custom-select.active .custom-select-trigger,
.custom-select-trigger:focus {
    background: #1c1c1f !important;
    border-color: rgba(236, 27, 27, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(236, 27, 27, 0.12) !important;
    color: #fff !important;
}

/* ==================== CUSTOM SELECT DROPDOWN ==================== */
.custom-select-options {
    background: #1c1c1f !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.custom-select-option {
    font-family: 'Kanit', sans-serif !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 10px 14px !important;
    transition: background 0.15s ease !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.custom-select-option:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #fff !important;
    padding-left: 14px !important;
}

.custom-select-option.selected {
    background: rgba(236, 27, 27, 0.15) !important;
    color: #ec1b1b !important;
    font-weight: 500 !important;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 99px !important;
}

.custom-select-options::-webkit-scrollbar-track {
    background: transparent !important;
}

/* ==================== TERMS CHECKBOX ==================== */
.terms-checkbox-section {
    margin: 22px 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
}

.checkbox-container {
    padding-left: 30px !important;
    font-family: 'Kanit', sans-serif !important;
}

.checkmark {
    width: 18px !important;
    height: 18px !important;
    background: #1c1c1f !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 5px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.checkbox-container:hover input ~ .checkmark {
    background: #1c1c1f !important;
    border-color: rgba(236, 27, 27, 0.55) !important;
    box-shadow: none !important;
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(180deg, #ec1b1b 0%, #b91c1c 100%) !important;
    border-color: #ec1b1b !important;
    box-shadow: none !important;
}

.checkbox-container .checkmark:after {
    left: 5px !important;
    top: 2px !important;
    width: 5px !important;
    height: 9px !important;
    border-color: #fff !important;
    border-width: 0 2px 2px 0 !important;
}

.checkbox-label {
    font-family: 'Kanit', sans-serif !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.55 !important;
}

.terms-link {
    color: #ec1b1b !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    text-shadow: none !important;
}

.terms-link:hover {
    color: #ff5252 !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

/* ==================== TERMS MODAL ==================== */
.terms-modal-overlay {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

.terms-modal-content {
    background: #1c1c1f !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 60px rgba(0,0,0,0.5) !important;
    max-width: 720px !important;
}

.terms-modal-content::before {
    display: none !important;
}

.terms-modal-header {
    padding: 24px 28px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    background: none !important;
}

.terms-modal-header::after {
    display: none !important;
}

.terms-modal-title {
    font-family: 'Kanit', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
    color: #fff !important;
    text-shadow: none !important;
    text-align: center !important;
    margin: 0 0 4px 0 !important;
}

.terms-modal-subtitle {
    font-family: 'Kanit', sans-serif !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.45) !important;
    text-align: center !important;
    margin: 0 !important;
}

.terms-modal-close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.terms-modal-close svg {
    width: 16px !important;
    height: 16px !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.terms-modal-close:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: none !important;
}

.terms-modal-close:hover svg {
    color: #fff !important;
}

.terms-modal-body {
    padding: 24px 28px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    scrollbar-color: rgba(255,255,255,0.15) transparent !important;
}

.terms-modal-body::-webkit-scrollbar-track {
    background: transparent !important;
    border-radius: 99px !important;
}

.terms-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 99px !important;
}

.terms-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.terms-section-modal h3 {
    font-family: 'Kanit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
    color: #ec1b1b !important;
    margin: 0 0 10px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    text-shadow: none !important;
}

.terms-section-modal p {
    font-family: 'Kanit', sans-serif !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.72) !important;
    margin: 0 0 8px 0 !important;
}

.terms-section-modal p strong {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Warning section */
.terms-section-modal.warning-section {
    background: rgba(251, 191, 36, 0.06) !important;
    border-left: 3px solid #fbbf24 !important;
    border-top: 1px solid rgba(251, 191, 36, 0.2) !important;
    border-right: 1px solid rgba(251, 191, 36, 0.1) !important;
    border-bottom: 1px solid rgba(251, 191, 36, 0.15) !important;
    padding: 20px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.terms-section-modal.warning-section h3 {
    color: #fbbf24 !important;
    font-size: 14px !important;
    border-bottom-color: rgba(251, 191, 36, 0.2) !important;
    text-shadow: none !important;
}

.terms-section-modal.warning-section .warning-intro {
    background: rgba(251, 191, 36, 0.08) !important;
    border: 1px solid rgba(251, 191, 36, 0.2) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    margin-bottom: 12px !important;
    color: rgba(253, 230, 138, 0.85) !important;
    font-weight: 500 !important;
}

.terms-section-modal.warning-section p strong {
    color: #fde68a !important;
}

.terms-modal-footer {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.terms-update {
    font-family: 'Kanit', sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
    color: rgba(255, 255, 255, 0.35) !important;
    text-align: center !important;
    margin: 0 !important;
}

.terms-modal-buttons {
    padding: 16px 28px !important;
    background: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    display: flex !important;
    gap: 10px !important;
}

.terms-modal-btn {
    flex: 1 !important;
    padding: 12px 20px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    font-family: 'Kanit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.terms-decline {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.terms-decline:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.terms-accept {
    background: linear-gradient(180deg, #ec1b1b 0%, #b91c1c 100%) !important;
    color: #fff !important;
    border-color: rgba(236, 27, 27, 0.6) !important;
    text-shadow: none !important;
    box-shadow: 0 4px 12px rgba(236, 27, 27, 0.3) !important;
}

.terms-accept:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(236, 27, 27, 0.45) !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 500px) {
    .step-title { font-size: 15px !important; }
    .step-description { font-size: 12px !important; }
    .terms-modal-title { font-size: 16px !important; }
    .terms-modal-buttons { flex-direction: column !important; }
}
