/**
 * Join Us Page - Custom Form Styles
 * Remove white background from form inputs and reduce spacing
 */

/* Reduce spacing between form groups */
#join-form .form-group {
    margin-bottom: 1rem !important; /* Reduced from default spacing */
}

/* Join us form specific styles */
#join-form .form-input {
    background: transparent !important;
    border: 2px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#join-form .form-input:focus {
    background: rgba(102, 126, 234, 0.05) !important;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

#join-form .form-input:hover {
    border-color: rgba(102, 126, 234, 0.5);
}

/* Style for select dropdowns */
#join-form select.form-input {
    background: transparent !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: var(--text-primary);
}

/* Style for select dropdown options */
#join-form select.form-input option {
    background: rgba(20, 20, 30, 0.95) !important;
    color: #ffffff !important;
    padding: 8px 12px;
    border: none;
}

#join-form select.form-input option:hover {
    background: rgba(102, 126, 234, 0.8) !important;
}

#join-form select.form-input option:checked {
    background: rgba(102, 126, 234, 0.9) !important;
}

/* For webkit browsers */
#join-form select.form-input::-webkit-scrollbar {
    width: 8px;
}

#join-form select.form-input::-webkit-scrollbar-track {
    background: rgba(20, 20, 30, 0.8);
}

#join-form select.form-input::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.6);
    border-radius: 4px;
}

#join-form select.form-input::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* Textarea specific styles */
#join-form textarea.form-input {
    background: transparent !important;
    resize: vertical;
    min-height: 100px;
}

/* Placeholder text styling */
#join-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Form labels in join form */
#join-form .form-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* Glass effect for the entire form */
#join-form.card-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Submit button styling */
#join-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

#join-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* reCAPTCHA container styling */
#join-form .g-recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
    margin: 10px 0;
}

/* Custom dropdown styling for better cross-browser support */
#join-form .custom-select {
    position: relative;
    display: block;
}

#join-form .custom-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(102, 126, 234, 0.8);
    pointer-events: none;
}

/* Additional dark theme support for dropdowns */
@media (prefers-color-scheme: dark) {
    #join-form select.form-input option {
        background: rgba(15, 15, 25, 0.98) !important;
        color: #e5e5e5 !important;
    }
}

/* Firefox specific dropdown styling */
@-moz-document url-prefix() {
    #join-form select.form-input {
        background-image: none !important;
        padding-right: 30px;
    }
    
    #join-form select.form-input option {
        background: rgba(20, 20, 30, 0.95) !important;
        color: #ffffff !important;
    }
}

/* Enhanced focus state for dropdowns */
#join-form select.form-input:focus option {
    background: rgba(20, 20, 30, 0.98) !important;
}

#join-form select.form-input:focus option:checked {
    background: rgba(102, 126, 234, 0.9) !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    #join-form .g-recaptcha {
        transform: scale(0.8);
    }
}
