/* Registration Form Enhancements - Better Visibility & Spacing */
/* Fixes: Hard-to-see input boxes, cramped spacing, invisible checkboxes */

/* ===========================
   INPUT BOX VISIBILITY FIXES
   =========================== */

/* Make all input boxes stand out before focus */
.inputbox,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea,
select {
    /* Subtle border to make inputs visible */
    border: 1px solid rgba(56, 189, 248, 0.25)  ;
    
    /* Better background contrast */
    background-color: rgba(15, 23, 35, 0.6)  ;
    
    /* Subtle inner shadow for depth */
    /* box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(56, 189, 248, 0.1)  ;
     */
    /* Smooth transitions */
    transition: all 0.3s ease  ;
}

/* Hover state - More visible */
.inputbox:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
textarea:hover,
select:hover {
    border-color: rgba(56, 189, 248, 0.4)  ;
    background-color: rgba(20, 28, 42, 0.7)  ;
    /* box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(56, 189, 248, 0.2),
        0 0 8px rgba(56, 189, 248, 0.15)  ;
} */

/* Focus state - Strong glow */
.inputbox:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: rgba(56, 189, 248, 0.6)  ;
    background-color: rgba(25, 35, 50, 0.8)  ;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(56, 189, 248, 0.3),
        0 0 16px rgba(56, 189, 248, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.4)  ;
    outline: none  ;
}

/* ===========================
   CHECKBOX & RADIO VISIBILITY
   =========================== */

/* Make checkboxes and radio buttons more visible */
input[type="checkbox"],
input[type="radio"],
.checkbox-primary,
.radio-primary {
    /* Visible border */
    border: 2px solid rgba(56, 189, 248, 0.4)  ;
    
    /* Better background */
    background-color: rgba(15, 23, 35, 0.7)  ;
    
    /* Larger clickable area */
    width: 20px  ;
    height: 20px  ;
    min-width: 20px  ;
    min-height: 20px  ;
    
    /* Subtle glow */
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(56, 189, 248, 0.15)  ;
    
    /* Smooth transitions */
    transition: all 0.3s ease  ;
    
    /* Prevent squishing */
    flex-shrink: 0  ;
    
    /* Position for checkmark */
    position: relative  ;
}

/* Checkbox/Radio hover state */
input[type="checkbox"]:hover,
input[type="radio"]:hover,
.checkbox-primary:hover,
.radio-primary:hover {
    border-color: rgba(56, 189, 248, 0.6)  ;
    background-color: rgba(20, 28, 42, 0.8)  ;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(56, 189, 248, 0.3),
        0 0 8px rgba(56, 189, 248, 0.2)  ;
    cursor: pointer  ;
}

/* Checked state - Bright and visible */
input[type="checkbox"]:checked,
input[type="radio"]:checked,
.checkbox-primary:checked,
.radio-primary:checked {
    border-color: rgba(56, 189, 248, 0.8)  ;
    background-color: rgba(56, 189, 248, 0.9)  ;
    box-shadow: 
        inset 0 0 0 2px rgba(15, 23, 35, 0.2),
        0 0 0 2px rgba(56, 189, 248, 0.4),
        0 0 12px rgba(56, 189, 248, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3)  ;
}

/* Add checkmark icon for checked checkboxes */
.checkbox-primary:checked::after,
input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* ===========================
   REGISTRATION PAGE SPACING
   =========================== */

/* Add proper spacing to registration form */
#register.space-y-4 > * {
    margin-bottom: 1.5rem  ; /* Increased from 1rem */
}

/* Space between label and input */
#register label {
    margin-bottom: 0.625rem  ; /* 10px - more breathing room */
    display: block  ;
    font-weight: 500  ;
    color: rgba(248, 250, 252, 0.95)  ;
}

/* Space for collapsible help text */
.zn-collapse {
    margin-bottom: 0.5rem  ;
}

/* Better spacing for form fields */
#register > div {
    margin-bottom: 1.75rem  ; /* Increased spacing between fields */
}

/* Custom fields section spacing */
.register-input {
    margin-bottom: 1.5rem  ;
}

/* Agent group checkboxes spacing */
#register input[type="checkbox"] + label,
#register input[type="radio"] + label {
    margin-left: 0.625rem  ;
    line-height: 1.5  ;
    vertical-align: middle  ;
}

/* Checkbox/Radio container spacing */
#register .radio-label,
#register label:has(input[type="checkbox"]),
#register label:has(input[type="radio"]) {
    padding: 0.75rem  ;
    margin-bottom: 0.5rem  ;
    display: flex  ;
    align-items: center  ;
    gap: 0.75rem  ;
}

/* ===========================
   DROPDOWN/SELECT VISIBILITY
   =========================== */

/* Make select dropdowns more visible */
select {
    /* Add dropdown arrow indicator */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(56, 189, 248, 0.7)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E")  ;
    background-repeat: no-repeat  ;
    background-position: right 0.75rem center  ;
    background-size: 1.25rem  ;
    padding-right: 2.5rem  ;
}

/* ===========================
   BUTTON CONTRAST (Registration)
   =========================== */

/* Make submit button stand out */
#register button[type="submit"],
#register input[type="submit"] {
    background: linear-gradient(135deg, 
        rgba(56, 189, 248, 0.9), 
        rgba(14, 165, 233, 0.95))  ;
    border: 1px solid rgba(56, 189, 248, 0.5)  ;
    box-shadow: 
        0 0 0 1px rgba(56, 189, 248, 0.3),
        0 4px 16px rgba(56, 189, 248, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.4)  ;
    color: #ffffff  ;
    font-weight: 600  ;
    padding: 0.875rem 1.5rem  ;
    transition: all 0.3s ease  ;
}

#register button[type="submit"]:hover,
#register input[type="submit"]:hover {
    background: linear-gradient(135deg, 
        rgba(56, 189, 248, 1), 
        rgba(14, 165, 233, 1))  ;
    box-shadow: 
        0 0 0 2px rgba(56, 189, 248, 0.5),
        0 6px 20px rgba(56, 189, 248, 0.4),
        0 12px 32px rgba(0, 0, 0, 0.5)  ;
    transform: translateY(-2px)  ;
}

/* ===========================
   PLACEHOLDER TEXT VISIBILITY
   =========================== */

.inputbox::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, 0.6)  ;
    opacity: 1  ;
}

.inputbox:focus::placeholder,
input:focus::placeholder,
textarea:focus::placeholder {
    color: rgba(148, 163, 184, 0.4)  ;
}

/* ===========================
   TERMS CHECKBOX SPECIAL STYLING
   =========================== */

/* Make the terms & conditions checkbox extra visible */
#register input[name="agreed"] {
    width: 22px  ;
    height: 22px  ;
    border: 2px solid rgba(56, 189, 248, 0.5)  ;
}

#register input[name="agreed"]:checked {
    background-color: rgba(34, 197, 94, 0.9)  ;
    border-color: rgba(34, 197, 94, 0.8)  ;
    box-shadow: 
        0 0 0 2px rgba(34, 197, 94, 0.3),
        0 0 12px rgba(34, 197, 94, 0.4)  ;
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
   =========================== */

@media (max-width: 768px) {
    /* Slightly reduce spacing on mobile */
    #register > div {
        margin-bottom: 1.5rem  ;
    }
    
    /* Make checkboxes easier to tap on mobile */
    input[type="checkbox"],
    input[type="radio"] {
        width: 24px  ;
        height: 24px  ;
    }
}

/* ===========================
   ACCESSIBILITY IMPROVEMENTS
   =========================== */

/* Focus visible for keyboard navigation */
.inputbox:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.5)  ;
    outline-offset: 2px  ;
}