/* =========================================================
   IPERHOST
   ÁREA DE CUENTA / AJUSTES
   ========================================================= */


/* =========================================================
   CONTENEDOR GENERAL DE AJUSTES
   ========================================================= */

.hp-page:has(.hp-form--user-update) {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 32px 64px;
    box-sizing: border-box;
}


/* Título principal */

.hp-page:has(.hp-form--user-update) > .hp-page__title {
    margin: 0 0 8px;

    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;

    color: var(--iperhost-navy-dark);
}


/* Texto debajo del título */

.hp-page:has(.hp-form--user-update) > .wp-block-paragraph {
    margin: 0 0 36px;

    color: #718087;
    font-size: 15px;
}


/* =========================================================
   COLUMNAS
   ========================================================= */

.hp-page:has(.hp-form--user-update) > .wp-block-columns {
    gap: 40px;
    align-items: flex-start;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.hp-page:has(.hp-form--user-update)
.wp-block-column:first-child {
    padding: 24px;

    border: 1px solid #e3e9ec;
    border-radius: 16px;

    background: #ffffff;

    box-shadow: 0 4px 20px rgba(var(--iperhost-navy-rgb), 0.06);
}


/* Menú de usuario */

.hp-page:has(.hp-form--user-update)
.wp-block-column:first-child
.wp-block-heading {
    margin: 0 0 20px;

    font-size: 19px;
    font-weight: 700;

    color: var(--iperhost-navy-dark);
}


.hp-page:has(.hp-form--user-update)
.hp-menu--user-account ul {
    margin: 0;
    padding: 0;

    list-style: none;
}


.hp-page:has(.hp-form--user-update)
.hp-menu--user-account .hp-menu__item {
    margin: 4px 0;
}


.hp-page:has(.hp-form--user-update)
.hp-menu--user-account .hp-menu__item > a {
    display: flex;
    align-items: center;

    min-height: 44px;

    padding: 0 14px;

    border-radius: 9px;

    color: #536167;

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.hp-page:has(.hp-form--user-update)
.hp-menu--user-account .hp-menu__item > a:hover {
    background: var(--iperhost-cream);
    color: var(--iperhost-navy);
}


/* Opción activa */

.hp-page:has(.hp-form--user-update)
.hp-menu--user-account .hp-menu__item--current > a {
    background: var(--iperhost-cream);
    color: var(--iperhost-navy);

    font-weight: 700;
}


/* =========================================================
   BOTÓN CREAR PROPIEDAD
   ========================================================= */

.hp-page:has(.hp-form--user-update)
.wp-block-column:first-child
.wp-block-buttons {
    margin-top: 26px;
}


.hp-page:has(.hp-form--user-update)
.wp-block-column:first-child
.wp-block-button {
    width: 100%;
}


.hp-page:has(.hp-form--user-update)
.wp-block-column:first-child
.wp-block-button__link {
    width: 100%;
    box-sizing: border-box;

    padding: 13px 18px;

    border-radius: 10px;

    background: var(--iperhost-navy);
    color: #ffffff;

    text-align: center;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   PANEL INFORMACIÓN PERSONAL
   ========================================================= */

.hp-page:has(.hp-form--user-update)
.wp-block-column:nth-child(2) {
    padding: 30px;

    border: 1px solid #e3e9ec;
    border-radius: 16px;

    background: #ffffff;

    box-shadow: 0 4px 20px rgba(var(--iperhost-navy-rgb), 0.05);
}


/* "Información personal" */

.hp-page:has(.hp-form--user-update)
.wp-block-column:nth-child(2) > .wp-block-heading {
    margin: 0 0 28px;

    font-size: 22px;
    font-weight: 700;

    color: var(--iperhost-navy-dark);
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.hp-form--user-update {
    width: 100%;
}


.hp-form--user-update .hp-form__field {
    margin-bottom: 24px;
}


/* Labels */

.hp-form--user-update .hp-form__label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #34444b;
}


.hp-form--user-update .hp-form__label small {
    margin-left: 4px;

    font-size: 12px;
    font-weight: 400;

    color: #8b979c;
}


/* =========================================================
   INPUTS
   ========================================================= */

.hp-form--user-update input[type="text"],
.hp-form--user-update input[type="email"],
.hp-form--user-update input[type="password"],
.hp-form--user-update textarea {
    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    border: 1px solid #d9e0e3;
    border-radius: 10px;

    background: #ffffff;

    color: var(--iperhost-navy-dark);

    font-size: 15px;

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


.hp-form--user-update input[type="text"],
.hp-form--user-update input[type="email"],
.hp-form--user-update input[type="password"] {
    min-height: 50px;
    padding: 0 15px;
}


.hp-form--user-update textarea {
    min-height: 140px;

    padding: 14px 15px;

    line-height: 1.6;

    resize: vertical;
}


/* Focus */

.hp-form--user-update input:focus,
.hp-form--user-update textarea:focus {
    outline: none;

    border-color: var(--iperhost-navy);

    box-shadow: 0 0 0 3px rgba(var(--iperhost-navy-rgb), 0.10);
}


/* =========================================================
   CONTRASEÑA / ICONO MOSTRAR
   ========================================================= */

.hp-form--user-update
.hp-form__field--password {
    position: relative;
}


.hp-form--user-update
.hp-form__field--password input {
    padding-right: 48px;
}


.hp-form--user-update
.hp-form__field--password .hp-field__icon {
    right: 16px;

    color: #65757c;
}


/* =========================================================
   IMAGEN DE PERFIL
   ========================================================= */

.hp-form--user-update
.hp-field--attachment-upload button {
    min-height: 46px;

    padding: 0 18px;

    border: 1px solid #ccd7db;
    border-radius: 10px;

    background: #ffffff;

    color: var(--iperhost-navy);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}


.hp-form--user-update
.hp-field--attachment-upload button:hover {
    background: #f4f8f9;

    border-color: var(--iperhost-navy);
}


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

.hp-form--user-update .hp-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 32px;
}


/* Guardar */

.hp-form--user-update
.hp-form__button.hp-field--submit {
    min-height: 50px;

    padding: 0 26px;

    border: 0;
    border-radius: 10px;

    background: var(--iperhost-navy);

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 6px 18px rgba(var(--iperhost-navy-rgb), 0.20) !important;
}


/* =========================================================
   BORRAR CUENTA
   ========================================================= */

.hp-form--user-update
.hp-form__action--user-delete {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #ba3e3e;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}


.hp-form--user-update
.hp-form__action--user-delete:hover {
    color: #922e2e;
}


/* =========================================================
   MODAL BORRAR CUENTA
   ========================================================= */

.hp-form--user-delete input[type="password"] {
    width: 100%;

    min-height: 50px;

    padding: 0 15px;

    box-sizing: border-box;

    border: 1px solid #d9e0e3;
    border-radius: 10px;
}


.hp-form--user-delete
.hp-form__button {
    border-radius: 10px;

    background: #b83c3c;

    box-shadow: none !important;
}


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

@media (max-width: 1024px) {

    .hp-page:has(.hp-form--user-update) {
        padding: 38px 28px 54px;
    }


    .hp-page:has(.hp-form--user-update)
    > .hp-page__title {
        font-size: 32px;
    }


    .hp-page:has(.hp-form--user-update)
    > .wp-block-columns {
        gap: 26px;
    }


    .hp-page:has(.hp-form--user-update)
    .wp-block-column:nth-child(2) {
        padding: 24px;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767px) {

    .hp-page:has(.hp-form--user-update) {
        padding: 26px 18px 42px;
    }


    .hp-page:has(.hp-form--user-update)
    > .hp-page__title {
        font-size: 27px;
    }


    .hp-page:has(.hp-form--user-update)
    > .wp-block-paragraph {
        margin-bottom: 24px;
    }


    /* Columnas */

    .hp-page:has(.hp-form--user-update)
    > .wp-block-columns {
        display: block;
    }


    /* Sidebar */

    .hp-page:has(.hp-form--user-update)
    .wp-block-column:first-child {
        margin-bottom: 24px;

        padding: 18px;
    }


    /* Formulario */

    .hp-page:has(.hp-form--user-update)
    .wp-block-column:nth-child(2) {
        padding: 20px 18px;
    }


    /* Footer */

    .hp-form--user-update
    .hp-form__footer {
        flex-direction: column;
        align-items: stretch;
    }


    .hp-form--user-update
    .hp-form__button.hp-field--submit {
        width: 100%;
    }


    .hp-form--user-update
    .hp-form__actions {
        text-align: center;
    }


    .hp-form--user-update
    .hp-field--attachment-upload button {
        width: 100%;
    }

}