/* =========================================================
   EDIT PROFILE
========================================================= */

.company-profile-edit-page {
    padding-bottom: 40px;
}


/* =========================================================
   HEADER
========================================================= */

.profile-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;
    padding: 22px 25px;

    border-radius: 17px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(75,145,220,.14),
            transparent 30%
        ),
        #fff;

    border: 1px solid #e5edf6;
    box-shadow: 0 5px 20px rgba(14,43,78,.05);
}

.profile-edit-header-left {
    display: flex;
    align-items: center;
    gap: 17px;
}

.back-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 12px;

    border-radius: 9px;

    background: #f3f7fc;
    color: #37658f;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    transition: .2s ease;
}

.back-profile-btn:hover {
    background: #e8f1fb;
    color: #1769d3;
}

.header-title {
    border-left: 1px solid #e4ebf3;
    padding-left: 17px;
}

.header-kicker {
    display: block;

    margin-bottom: 4px;

    color: #3977bb;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.header-title h1 {
    margin: 0;

    color: #102d4f;
    font-size: 22px;
    font-weight: 800;
}

.header-title p {
    margin: 5px 0 0;

    color: #8796a8;
    font-size: 11px;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 11px;

    border-radius: 999px;

    background: #edf9f3;
    color: #21835b;

    font-size: 10px;
    font-weight: 700;
}

.header-badge span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #28ad72;
}


/* =========================================================
   ALERT
========================================================= */

.profile-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin-bottom: 18px;
    padding: 13px 15px;

    border-radius: 12px;
}

.profile-alert.success {
    background: #ecf9f2;
    border: 1px solid #cdeedc;
    color: #227d55;
}

.profile-alert.error {
    background: #fff1f1;
    border: 1px solid #f2d1d1;
    color: #b74c4c;
}

.alert-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.7);

    font-size: 11px;
    font-weight: 800;
}

.profile-alert strong {
    display: block;
    font-size: 12px;
}

.profile-alert p {
    margin: 2px 0 0;

    font-size: 10px;
}


/* =========================================================
   GRID
========================================================= */

.profile-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(285px, .75fr);
    gap: 20px;
    align-items: start;
}


/* =========================================================
   FORM CARD
========================================================= */

.profile-edit-card {
    padding: 25px;

    background: #fff;

    border: 1px solid #e5edf6;
    border-radius: 18px;

    box-shadow: 0 5px 20px rgba(14,43,78,.05);
}

.edit-card-header {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    padding-bottom: 20px;
    margin-bottom: 3px;

    border-bottom: 1px solid #edf1f6;
}

.edit-card-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #eaf3ff;
    color: #1769d3;

    font-size: 16px;
}

.edit-kicker,
.preview-kicker {
    display: block;

    margin-bottom: 4px;

    color: #3977bb;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.edit-card-header h2 {
    margin: 0;

    color: #102d4f;
    font-size: 17px;
    font-weight: 800;
}

.edit-card-header p {
    margin: 5px 0 0;

    color: #8997a8;
    font-size: 11px;
}


/* =========================================================
   FORM
========================================================= */

.company-profile-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;

    padding-top: 20px;
}

.form-group {
    min-width: 0;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #344d68;

    font-size: 11px;
    font-weight: 700;
}

.form-group label span {
    color: #df5b5b;
}

.form-group label small {
    color: #9aa7b6;
    font-size: 9px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;

    width: 23px;
    height: 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border-radius: 6px;

    background: #f0f5fa;
    color: #5c7b9b;

    font-size: 9px;

    pointer-events: none;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #dce5ef;
    border-radius: 10px;

    background: #fbfcfe;
    color: #263f5c;

    font-family: inherit;
    font-size: 12px;

    outline: none;

    transition: .2s ease;
}

.input-wrapper input {
    height: 43px;
    padding: 0 13px 0 46px;
}

.input-wrapper textarea {
    min-height: 105px;

    padding: 13px 13px 13px 46px;

    line-height: 1.6;
    resize: vertical;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: #b0bbc8;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: #79a9d9;

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(38,116,190,.08);
}

.textarea-wrapper .textarea-icon {
    top: 18px;
    transform: none;
}

.form-group > small {
    display: block;

    margin-top: 5px;

    color: #9aa7b6;

    font-size: 9px;
    line-height: 1.5;
}


/* =========================================================
   ACTION
========================================================= */

.form-actions {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;

    margin-top: 5px;
    padding-top: 20px;

    border-top: 1px solid #edf1f6;
}

.cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 85px;
    height: 40px;

    padding: 0 15px;

    border-radius: 9px;

    background: #f3f6fa;
    color: #5d7187;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    transition: .2s ease;
}

.cancel-btn:hover {
    background: #e9eef4;
}

.save-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 155px;
    height: 40px;

    padding: 0 17px;

    border: 0;
    border-radius: 9px;

    background: #0b2d5c;
    color: #fff;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 6px 15px rgba(11,45,92,.14);

    transition: .2s ease;
}

.save-profile-btn:hover {
    background: #124477;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(11,45,92,.18);
}


/* =========================================================
   SIDEBAR
========================================================= */

.profile-edit-sidebar {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.edit-preview-card,
.edit-tips-card,
.edit-security-card {
    background: #fff;

    border: 1px solid #e5edf6;
    border-radius: 17px;

    box-shadow: 0 5px 18px rgba(14,43,78,.05);
}


/* =========================================================
   PREVIEW
========================================================= */

.edit-preview-card {
    padding: 22px;

    text-align: center;
}

.preview-avatar {
    width: 67px;
    height: 67px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 7px auto 12px;

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        #0b2d5c,
        #1769a8
    );

    color: #fff;

    font-size: 24px;
    font-weight: 800;

    box-shadow: 0 9px 20px rgba(11,45,92,.16);
}

.edit-preview-card h3 {
    margin: 0;

    color: #183754;

    font-size: 15px;
    font-weight: 800;

    word-break: break-word;
}

.edit-preview-card > p {
    margin: 4px 0 0;

    color: #8b99a8;
    font-size: 10px;

    word-break: break-word;
}

.preview-line {
    height: 1px;

    margin: 17px 0;

    background: #edf1f6;
}

.preview-location {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px;

    border-radius: 10px;

    background: #f7faff;

    text-align: left;
}

.preview-location > span {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #e8f2ff;
    color: #1769d3;

    font-size: 11px;
}

.preview-location strong {
    display: block;

    color: #55708d;
    font-size: 9px;
}

.preview-location small {
    display: block;

    margin-top: 2px;

    color: #7e8fa2;
    font-size: 10px;
}


/* =========================================================
   TIPS
========================================================= */

.edit-tips-card {
    padding: 20px;
}

.tips-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 10px;

    background: #fff5df;
    color: #d68a20;

    font-size: 15px;
}

.edit-tips-card h3 {
    margin: 0 0 11px;

    color: #233e5b;
    font-size: 13px;
}

.edit-tips-card ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.edit-tips-card li {
    position: relative;

    padding-left: 16px;
    margin-bottom: 9px;

    color: #7d8da0;

    font-size: 10px;
    line-height: 1.6;
}

.edit-tips-card li::before {
    content: "✓";

    position: absolute;
    left: 0;
    top: 0;

    color: #29966a;

    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   SECURITY
========================================================= */

.edit-security-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    padding: 16px;

    background: #f5f9fd;
}

.security-small-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #e5f1ff;
    color: #3977bb;

    font-size: 13px;
}

.edit-security-card strong {
    display: block;

    color: #36536f;
    font-size: 11px;
}

.edit-security-card p {
    margin: 4px 0 0;

    color: #8292a3;
    font-size: 9px;
    line-height: 1.5;
}


/* =========================================================
   ERROR
========================================================= */

.profile-edit-error {
    padding: 50px 20px;

    text-align: center;

    background: #fff;

    border: 1px solid #e5edf6;
    border-radius: 18px;
}

.error-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 12px;

    border-radius: 50%;

    background: #fff0f0;
    color: #d95353;

    font-weight: 800;
}

.profile-edit-error h3 {
    margin: 0;

    color: #233d5b;
    font-size: 16px;
}

.profile-edit-error p {
    margin: 5px 0 0;

    color: #8a98a9;
    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .profile-edit-grid {
        grid-template-columns: 1fr;
    }

    .profile-edit-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .edit-preview-card {
        grid-row: span 2;
    }

}


@media (max-width: 760px) {

    .profile-edit-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-edit-header-left {
        width: 100%;
        align-items: flex-start;
    }

    .header-badge {
        align-self: flex-start;
    }

    .profile-edit-sidebar {
        display: flex;
    }

    .company-profile-form {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .cancel-btn,
    .save-profile-btn {
        width: 100%;
    }

}


@media (max-width: 500px) {

    .profile-edit-header {
        padding: 18px;
    }

    .profile-edit-header-left {
        gap: 10px;
        flex-direction: column;
    }

    .header-title {
        border-left: 0;
        padding-left: 0;
    }

    .profile-edit-card {
        padding: 19px;
    }

    .header-title h1 {
        font-size: 19px;
    }

}

/* =========================================================
   PROFILE EDIT - EXTRA
========================================================= */

.form-section-title {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    gap: 11px;

    margin-top: 5px;
    padding: 15px 0 5px;

    border-top: 1px solid #edf1f6;
}

.section-title-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #edf5ff;
    color: #1769d3;

    font-size: 15px;
}

.form-section-title strong {
    display: block;

    color: #203b59;
    font-size: 13px;
}

.form-section-title span {
    display: block;

    margin-top: 2px;

    color: #8b99a8;
    font-size: 9px;
}


/* =========================================================
   STATUS PREVIEW
========================================================= */

.status-preview {
    min-height: 43px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 7px 12px;

    border: 1px solid #dce5ef;
    border-radius: 10px;

    background: #f8fafc;
}

.status-preview strong {
    color: #344d68;
    font-size: 11px;
}

.status-preview small {
    margin-left: auto;

    color: #9aa7b6;
    font-size: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;

    border-radius: 50%;
}

.status-dot.active {
    background: #20a36a;
    box-shadow: 0 0 0 4px rgba(32,163,106,.10);
}

.status-dot.inactive {
    background: #df6262;
    box-shadow: 0 0 0 4px rgba(223,98,98,.10);
}

.status-dot.pending {
    background: #e39a2e;
    box-shadow: 0 0 0 4px rgba(227,154,46,.10);
}


/* =========================================================
   PREVIEW ITEMS
========================================================= */

.preview-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-top: 10px;
    padding: 9px;

    border-radius: 9px;

    background: #f8faff;

    text-align: left;
}

.preview-item-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #e8f2ff;
    color: #1769d3;

    font-size: 10px;
}

.preview-item strong {
    display: block;

    color: #68809a;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.preview-item small {
    display: block;

    margin-top: 2px;

    color: #536c87;

    font-size: 10px;
    line-height: 1.4;

    word-break: break-word;
}