﻿/* ==========================================================
   MILX PREMIUM
   forms.css
========================================================== */

/* ===============================
   FORM GROUP
================================= */

.form-group {
    margin-bottom: 1.5rem;
}

/* ===============================
   LABELS
================================= */

label,
.form-label {
    display: block;
    margin-bottom: .55rem;
    color: var(--gold-light);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .03em;
}

/* ===============================
   INPUTS
================================= */

.form-control,
.form-select,
textarea {
    width: 100%;
    min-height: 50px;
    padding: .8rem 1rem;
    background: #121212;
    color: var(--white);
    border: 1px solid #2E2E2E;
    border-radius: var(--radius);
    font-size: .95rem;
    transition: all .3s ease;
    box-shadow: none;
}

/* ===============================
   TEXTAREA
================================= */

textarea {
    resize: vertical;
    min-height: 150px;
}

    /* ===============================
   PLACEHOLDER
================================= */

    .form-control::placeholder,
    textarea::placeholder {
        color: #777;
    }

    /* ===============================
   FOCUS
================================= */

    .form-control:focus,
    .form-select:focus,
    textarea:focus {
        border-color: var(--gold);
        background: #181818;
        color: #fff;
        box-shadow: 0 0 0 4px rgba(212,175,55,.12);
        outline: none;
    }

/* ===============================
   SELECT
================================= */

.form-select {
    cursor: pointer;
}

/* ===============================
   READONLY
================================= */

.form-control[readonly] {
    background: #1A1A1A;
    cursor: not-allowed;
}

/* ===============================
   DISABLED
================================= */

.form-control:disabled,
.form-select:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* ===============================
   INPUT GROUP
================================= */

.input-group {
    border-radius: var(--radius);
    overflow: hidden;
}

.input-group-text {
    background: #171717;
    color: var(--gold);
    border: 1px solid #2E2E2E;
}

/* ===============================
   CHECKBOX
================================= */

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    background: #111;
    border: 2px solid #444;
}

    .form-check-input:checked {
        background-color: var(--gold);
        border-color: var(--gold);
    }

.form-check-label {
    color: var(--c-text-muted);
    margin-left: .5rem;
}

/* ===============================
   RADIO
================================= */

.form-check-input[type="radio"] {
    border-radius: 50%;
}

/* ===============================
   FILE INPUT
================================= */

.form-control[type="file"] {
    padding: .45rem;
}

    .form-control[type="file"]::file-selector-button {
        border: none;
        background: var(--gold-gradient);
        color: #111;
        padding: .6rem 1rem;
        border-radius: 8px;
        margin-right: 1rem;
        cursor: pointer;
        transition: .3s;
    }

        .form-control[type="file"]::file-selector-button:hover {
            filter: brightness(1.05);
        }

/* RTL */

html[dir="rtl"] .form-control[type="file"]::file-selector-button {
    margin-right: 0;
    margin-left: 1rem;
}

/* ===============================
   VALIDATION
================================= */

.field-validation-error {
    display: block;
    margin-top: .4rem;
    color: #ff7070;
    font-size: .85rem;
}

.validation-summary-errors {
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(220,53,69,.08);
    border: 1px solid rgba(220,53,69,.3);
    color: #ffb4b4;
    margin-bottom: 1.5rem;
}

.validation-summary-valid {
    display: none;
}

/* ===============================
   SUCCESS
================================= */

.is-valid {
    border-color: #2ECC71 !important;
}

    .is-valid:focus {
        box-shadow: 0 0 0 4px rgba(46,204,113,.12);
    }

/* ===============================
   ERROR
================================= */

.is-invalid {
    border-color: #E74C3C !important;
}

    .is-invalid:focus {
        box-shadow: 0 0 0 4px rgba(231,76,60,.12);
    }

/* ===============================
   SEARCH
================================= */

.search-box {
    position: relative;
}

    .search-box input {
        padding-inline-end: 50px;
    }

    .search-box i {
        position: absolute;
        top: 50%;
        inset-inline-end: 18px;
        transform: translateY(-50%);
        color: var(--gold);
        pointer-events: none;
    }

/* ===============================
   LOGIN FORM
================================= */

.auth-card {
    max-width: 500px;
    margin: auto;
    padding: 2.5rem;
    background: #111;
    border: 1px solid rgba(212,175,55,.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===============================
   CONTACT FORM
================================= */

.contact-form {
    padding: 2rem;
    background: #111;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212,175,55,.12);
}

/* ===============================
   RESPONSIVE
================================= */

@media(max-width:768px) {

    .auth-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}
