/* --- FORM CONTAINER STYLING --- */
.form-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-container h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(to right, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.form-container h3 {
    color: #a948ec;
    font-size: 1.2rem;
    margin: 35px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

/* --- FORM FIELDS --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

 

/* Inputs, Selects, and Textareas */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
 
textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6); /* Darker background for contrast */
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}


.removalType{
width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6); /* Darker background for contrast */
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.removalType:focus{
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.8);
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

 
input[type="date"] {
    position: relative;
    color-scheme: dark; /* Forces the browser's native picker to use dark mode */
    font-family: var(--font-main);
    cursor: pointer;
}

/* Customizing the Calendar Icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 24 24" fill="none" stroke="%236366f1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    cursor: pointer;
    filter: drop-shadow(0 0 2px var(--primary-color));
    transition: 0.3s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    transform: scale(1.2);
}

/* Styling the "Placeholder" text for Date */
input[type="date"]::before {
    color: var(--text-muted);
}

/* Ensure consistent sizing and glass effect */
input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

 .file-upload-section {
    margin-top: 15px;
    padding: 20px;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.file-upload-section:hover {
    border-color: #a948ec;
    background: rgba(244, 196, 48, 0.02);
}

input[type="file"]::file-selector-button {
    background: #2a2a2a;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 15px;
    cursor: pointer;
    transition: 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background: #a948ec;
    color: black;
    border-color: #a948ec;
}

/* --- INLINE GROUPS (Radio/Checkbox) --- */
.inline-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
}
.inline-group input[type="radio"],
.inline-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.inline-group label {
    margin: 0;
    padding: 10px 20px;
    background: #1a1a1e;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.inline-group label:hover {
    background: #25252a;
    border-color: rgba(255,255,255,0.2);
}

inline-group input:checked + label {
    background: rgba(244, 196, 48, 0.1);
    border-color: var();
    color: #a948ec;
    box-shadow: 0 0 15px rgba(244, 196, 48, 0.15);
}
.inline-group input:checked + label::before {
    content: '●';
    color: #a948ec;
    animation: glowPulse 1.5s infinite alternate;
}

@keyframes glowPulse {
    from { text-shadow: 0 0 5px rgba(244, 196, 48, 0.5); }
    to { text-shadow: 0 0 15px rgba(244, 196, 48, 1); }
}
 

/* --- SUBMIT BUTTON --- */
.submit-btn {
    width: 100%;
    margin-top: 30px;
    padding: 16px;
    background: linear-gradient(45deg, var(--primary-color), #a948ec);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Captcha Box Specific */
#captcha-display {
    border: 1px solid var(--primary-color) !important;
    background: rgba(99, 102, 241, 0.1) !important;
}
 

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .form-container {
        margin: 20px 15px;
        padding: 25px;
    }
}

.flex-row {
    flex-direction: row;
}

/* MOBILE VIEW */
@media (max-width: 550px) {
    .flex-row {
        flex-direction: column;
        align-items: stretch;
    }

    .flex-row select,
    .flex-row input,
    .flex-row button {
        width: 100% !important;
    }

    .mobile-divider {
        padding: 0 10px;
    }
}