/* =========================================================
   NEX FINSERV
   CLIENT CREATE PAGE
   Page-specific stylesheet
========================================================= */


/* =========================================================
   PAGE WRAPPER
========================================================= */

.admin-client-create {
    min-height: calc(100vh - 70px);

    padding: 28px;

    background: #f5f8fc;

    color: #172b45;
}

.admin-client-create-container {
    width: 100%;

    max-width: 1180px;

    margin: 0 auto;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.client-create-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.client-create-header-left {
    min-width: 0;
}

.client-create-header-left h1 {
    margin: 0;

    color: #172b45;

    font-size: 27px;

    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -.5px;
}

.client-create-header-left p {
    margin: 7px 0 0;

    color: #7c8da1;

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-client-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 40px;

    padding: 0 14px;

    border-radius: 10px;

    background: #ffffff;

    border: 1px solid #dfe7f0;

    color: #52657c;

    text-decoration: none;

    font-family: inherit;

    font-size: 11px;

    line-height: 1;

    font-weight: 800;

    white-space: nowrap;

    transition:
        color .18s ease,
        border-color .18s ease,
        background-color .18s ease;
}

.back-client-btn:hover {
    color: #1769e0;

    border-color: #cdddf5;

    background: #fbfdff;
}


/* =========================================================
   ALERTS
========================================================= */

.client-alert {
    margin-bottom: 16px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 12px;

    line-height: 1.5;

    font-weight: 700;
}

.client-alert-success {
    color: #146c43;

    background: #e7f7ee;

    border: 1px solid #c8ead6;
}

.client-alert-error {
    color: #a52834;

    background: #fde8eb;

    border: 1px solid #f5cbd1;
}


/* =========================================================
   MAIN FORM CARD
========================================================= */

.client-form-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e1e8f1;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(24, 52, 86, .05);

    overflow: hidden;
}


/* =========================================================
   FORM SECTION
========================================================= */

.client-form-section {
    padding: 22px;

    border-bottom: 1px solid #edf1f5;
}

.client-form-section:last-child {
    border-bottom: 0;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.client-section-header {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}

.client-section-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #edf4ff;

    color: #1769e0;

    font-size: 15px;

    line-height: 1;

    font-weight: 900;
}

.client-section-title {
    min-width: 0;
}

.client-section-title h2 {
    margin: 0;

    color: #233a55;

    font-size: 16px;

    line-height: 1.3;

    font-weight: 850;
}

.client-section-title p {
    margin: 4px 0 0;

    color: #8998a9;

    font-size: 10px;

    line-height: 1.4;
}


/* =========================================================
   FORM GRID
========================================================= */

.client-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.client-form-grid.three {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}


/* =========================================================
   FIELD
========================================================= */

.client-field {
    min-width: 0;
}

.client-field.full {
    grid-column: 1 / -1;
}


/* =========================================================
   LABEL
========================================================= */

.client-field label {
    display: block;

    margin-bottom: 7px;

    color: #566a82;

    font-size: 11px;

    line-height: 1.35;

    font-weight: 800;
}

.required {
    color: #dc3545;
}


/* =========================================================
   INPUT / SELECT / TEXTAREA
========================================================= */

.client-input,
.client-select,
.client-textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #dce5ee;

    border-radius: 9px;

    background: #ffffff;

    color: #304761;

    font-family: inherit;

    font-size: 12px;

    outline: none;

    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background-color .16s ease;
}

.client-input,
.client-select {
    height: 43px;

    min-height: 43px;

    padding: 0 12px;
}

.client-textarea {
    min-height: 95px;

    padding: 11px 12px;

    resize: vertical;

    line-height: 1.55;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.client-input::placeholder,
.client-textarea::placeholder {
    color: #a0acba;

    opacity: 1;
}


/* =========================================================
   FOCUS
========================================================= */

.client-input:focus,
.client-select:focus,
.client-textarea:focus {
    background: #ffffff;

    border-color: #1769e0;

    box-shadow:
        0 0 0 3px rgba(23, 105, 224, .08);
}


/* =========================================================
   INVALID
========================================================= */

.client-input.is-invalid,
.client-select.is-invalid,
.client-textarea.is-invalid {
    border-color: #dc3545;

    background: #fffafb;
}

.client-input.is-invalid:focus,
.client-select.is-invalid:focus,
.client-textarea.is-invalid:focus {
    border-color: #dc3545;

    box-shadow:
        0 0 0 3px rgba(220, 53, 69, .08);
}


/* =========================================================
   FIELD ERROR
========================================================= */

.field-error {
    margin-top: 5px;

    color: #dc3545;

    font-size: 10px;

    line-height: 1.45;

    font-weight: 600;
}


/* =========================================================
   FIELD HELP
========================================================= */

.field-help {
    margin-top: 5px;

    color: #8a99aa;

    font-size: 10px;

    line-height: 1.45;
}


/* =========================================================
   PASSWORD
========================================================= */

.password-wrap {
    position: relative;
}

.password-wrap .client-input {
    padding-right: 76px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    transform: translateY(-50%);

    border: 0;

    background: transparent;

    color: #1769e0;

    font-family: inherit;

    font-size: 10px;

    line-height: 1;

    font-weight: 800;

    cursor: pointer;

    padding: 6px;
}

.password-toggle:hover {
    color: #0f5bc7;
}


/* =========================================================
   FILE UPLOAD
========================================================= */

.file-input {
    width: 100%;

    box-sizing: border-box;

    height: 43px;

    padding: 9px 10px;

    border: 1px solid #dce5ee;

    border-radius: 9px;

    background: #ffffff;

    color: #52657c;

    font-family: inherit;

    font-size: 11px;

    line-height: 1.3;

    cursor: pointer;

    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}

.file-input:hover {
    border-color: #cbd9e8;
}

.file-input:focus {
    border-color: #1769e0;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(23, 105, 224, .08);
}


/* =========================================================
   SECTION NOTE
========================================================= */

.section-note {
    margin-bottom: 16px;

    padding: 11px 13px;

    border-radius: 10px;

    background: #f7f9fc;

    border: 1px solid #e5ebf2;

    color: #6d7e92;

    font-size: 10px;

    line-height: 1.65;
}


/* =========================================================
   FORM FOOTER
========================================================= */

.client-form-footer {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 9px;

    padding: 18px 22px;

    background: #fbfcfe;

    border-top: 1px solid #edf1f5;
}


/* =========================================================
   BUTTON BASE
========================================================= */

.client-btn {
    min-height: 43px;

    padding: 0 18px;

    border-radius: 9px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    border: 0;

    font-family: inherit;

    font-size: 11px;

    line-height: 1;

    font-weight: 850;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}


/* =========================================================
   CANCEL
========================================================= */

.client-btn-cancel {
    background: #ffffff;

    color: #52657c;

    border: 1px solid #dfe6ee;
}

.client-btn-cancel:hover {
    background: #f7f9fc;

    border-color: #d5e0eb;

    color: #344966;
}


/* =========================================================
   SAVE
========================================================= */

.client-btn-save {
    min-width: 145px;

    background: #1769e0;

    color: #ffffff;

    box-shadow:
        0 5px 12px rgba(23, 105, 224, .12);
}

.client-btn-save:hover {
    background: #125bc5;

    box-shadow:
        0 7px 16px rgba(23, 105, 224, .17);

    transform: translateY(-1px);
}

.client-btn-save:active {
    transform: translateY(0);
}


/* =========================================================
   DISABLED BUTTON
========================================================= */

.client-btn:disabled {
    opacity: .65;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .admin-client-create {
        padding: 24px 20px 30px;
    }

    .client-form-grid.three {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 850px) {

    .admin-client-create {
        padding: 20px 15px 30px;
    }

    .client-create-header-left h1 {
        font-size: 25px;
    }

    .client-form-section {
        padding: 20px;
    }

    .client-form-grid.three {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .admin-client-create {
        min-height: auto;

        padding: 16px 11px 25px;
    }

    .admin-client-create-container {
        width: 100%;
    }


    /* Header */

    .client-create-header {
        flex-direction: column;

        align-items: stretch;

        gap: 12px;

        margin-bottom: 17px;
    }

    .client-create-header-left h1 {
        font-size: 23px;

        letter-spacing: -.3px;
    }

    .client-create-header-left p {
        margin-top: 6px;

        font-size: 11px;
    }

    .back-client-btn {
        width: 100%;

        min-height: 41px;
    }


    /* Form */

    .client-form-card {
        border-radius: 15px;
    }

    .client-form-section {
        padding: 17px 15px;
    }


    /* Section */

    .client-section-header {
        gap: 10px;

        margin-bottom: 15px;
    }

    .client-section-icon {
        width: 35px;
        height: 35px;

        flex-basis: 35px;

        border-radius: 9px;

        font-size: 14px;
    }

    .client-section-title h2 {
        font-size: 15px;
    }

    .client-section-title p {
        font-size: 10px;
    }


    /* Grid */

    .client-form-grid,
    .client-form-grid.three {
        grid-template-columns: 1fr;

        gap: 13px;
    }

    .client-field.full {
        grid-column: auto;
    }


    /* Inputs */

    .client-field label {
        margin-bottom: 6px;

        font-size: 10px;
    }

    .client-input,
    .client-select {
        height: 43px;

        min-height: 43px;

        font-size: 12px;
    }

    .client-textarea {
        min-height: 90px;

        font-size: 12px;
    }

    .field-error,
    .field-help {
        font-size: 9px;
    }

    .file-input {
        height: 43px;

        font-size: 10px;
    }


    /* Note */

    .section-note {
        padding: 10px 11px;

        font-size: 9px;

        line-height: 1.6;
    }


    /* Footer */

    .client-form-footer {
        flex-direction: column-reverse;

        align-items: stretch;

        justify-content: center;

        gap: 8px;

        padding: 15px;
    }

    .client-form-footer .client-btn {
        width: 100%;

        min-height: 43px;
    }

    .client-btn-save {
        min-width: 0;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .admin-client-create {
        padding: 13px 9px 22px;
    }

    .client-create-header-left h1 {
        font-size: 21px;
    }

    .client-create-header-left p {
        font-size: 10px;
    }

    .client-form-section {
        padding: 15px 13px;
    }

    .client-section-title h2 {
        font-size: 14px;
    }

    .client-section-title p {
        font-size: 9px;
    }

    .client-input,
    .client-select {
        height: 42px;

        min-height: 42px;

        padding: 0 11px;

        font-size: 11px;
    }

    .client-textarea {
        font-size: 11px;
    }

    .client-form-footer {
        padding: 13px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .back-client-btn,
    .client-input,
    .client-select,
    .client-textarea,
    .file-input,
    .client-btn {
        transition: none;
    }

    .client-btn-save:hover {
        transform: none;
    }

}