/* --- Global Form Vars --- */
:root {
    --color-50: #f5faeb;
    --color-100: #e7f4d3;
    --color-200: #d2ebab;
    --color-300: #b3dc7a;
    --color-400: #8bc53f;
    --color-500: #77b032;
    --color-600: #5b8c24;
    --color-700: #476b20;
    --color-800: #3a551f;
    --color-900: #33491e;
    --color-950: #18280b;

    --form-bg: #ffffff;
    --color-700: #e2e8f0;
    --input-focus: #2563eb;
    --text-main: var(--color-900);
    --text-muted: #64748b;
}

form h6 {
    font-size: 1.1remm;


}

.bg-custom-dark {
    background-color: var(--color-900);
    color: #fff;
}

.btn-custom-dark {
    background-color: var(--color-900);
    color: #fff;
    border: none;
}

.btn-custom-dark:hover {
    background-color: #000;
    color: #fff;
}

/* --- Labels --- */
.form-label-custom {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    display: block;
}

.form-label-custom.required::after {
    content: " *";
    color: #ef4444;
}

/* --- Input & Select Styling --- */
.form-control-custom,
.form-select-custom {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--color-700);
    border-radius: 12px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    color: var(--text-main);
    appearance: none;
}

/* Custom Select Arrow */
/* .form-select-custom {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em auto;
} */

.form-control-custom:focus,
.form-select-custom:focus {
    border-color: var(--input-focus);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* --- Input Icons --- */
.input-icon-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    z-index: 5;
}

.input-icon-group .form-control-custom,
.input-icon-group .form-select-custom {
    padding-left: 48px;
}

/* --- File Drop Zone --- */
.file-drop-zone-large {
    border: 2px dashed #cbd5e1;
    background-color: #f8fafc;
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.file-drop-zone-large:hover {
    border-color: var(--input-focus);
    background-color: #eff6ff;
}

.file-input-hidden {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* --- Misc --- */
.letter-spacing-1 {
    letter-spacing: 1px;
}

.fw-extrabold {
    font-weight: 800;
}

.bg-primary-soft {
    background-color: rgba(37, 99, 235, 0.1);
}

/* --- Invalid State Styles --- */
.form-control-custom.is-invalid,
.form-select-custom.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
    /* Light red tint */
    background-image: none;
    /* Removes default Bootstrap icons if any */
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

.form-control-custom.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* --- Error Text Style --- */
.error-feedback-custom {
    display: flex;
    align-items: center;
    color: #ef4444;
    font-size: 0.825rem;
    font-weight: 600;
    margin-top: 6px;
    padding-left: 4px;
}

/* --- Shaking Animation for Errors --- */
@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-3px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(3px, 0, 0);
    }
}

/* --- Valid State (Optional: Green Success) --- */
.form-control-custom.is-valid {
    border-color: #22c55e !important;
    background-color: #f0fdf4;
}

/* --- Ensure identical height for Input and Select --- */
.form-control-custom,
.form-select-custom {
    width: 100%;
    /* Use a fixed height or identical padding + line-height */
    height: 41px;
    padding: 10px 16px;
    font-size: 1rem;
    line-height: 1.5;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    background-color: #f8fafc;
    color: var(--text-main);
    transition: all 0.2s ease;
}

/* Specific Select Fixes */
.form-select-custom {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Ensure the vertical alignment of text inside matches the input */
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Adjust padding for the icon versions */
.input-icon-group .form-control-custom,
.input-icon-group .form-select-custom {
    padding-left: 48px;
}

/* Validation height preservation */
.form-control-custom.is-invalid,
.form-select-custom.is-invalid {
    height: 41px;
    /* Force height even in error state */
}
