/**
 * NUX Salon & SPA - Formulario de Registro
 * Luxury Minimal Design
 * Paleta de colores oficial de NUX
 */

:root {
    --nux-nude: #A99286;
    --nux-marfil: #F2D8C2;
    --nux-gris: #D6CCC2;
    --nux-blanco: #F4EEE9;
    --nux-dark: #4A4139;
    --nux-text: #5A524A;
}

/* Contenedor principal */
.nux-form-container {
    max-width: 700px;
    margin: 60px auto;
    padding: 60px 50px;
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 8px 40px rgba(169, 146, 134, 0.08);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    position: relative;
}

.nux-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--nux-nude);
}

/* Encabezado */
.nux-form-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 0;
    border-bottom: none;
}

.nux-logo {
    max-width: 180px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
    opacity: 0.95;
}

.nux-form-address {
    font-size: 11px;
    color: #999;
    line-height: 1.8;
    margin-top: 20px;
    font-weight: 300;
}

/* Mensajes */
.nux-form-message {
    padding: 20px 30px;
    border-radius: 0;
    margin-bottom: 40px;
    font-size: 13px;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.5px;
    border-left: 2px solid;
}

.nux-form-error {
    background-color: #FFF5F5;
    border-left-color: #C89B9B;
    color: #8B6B6B;
}

.nux-form-success {
    background-color: #F7FAF5;
    border-left-color: var(--nux-nude);
    color: var(--nux-text);
}

.nux-form-info {
    background-color: var(--nux-blanco);
    border-left-color: var(--nux-gris);
    color: var(--nux-text);
}

.nux-form-message a {
    color: var(--nux-nude);
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid var(--nux-nude);
    transition: opacity 0.3s ease;
}

.nux-form-message a:hover {
    opacity: 0.7;
}

/* Formulario */
.nux-registration-form {
    width: 100%;
}

/* Secciones */
.nux-form-section {
    margin-bottom: 50px;
}

.nux-form-section-title {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    margin: 0 0 35px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--nux-gris);
    color: var(--nux-text);
    text-transform: uppercase;
}

/* Grupos de formulario */
.nux-form-group {
    margin-bottom: 28px;
}

.nux-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--nux-text);
    letter-spacing: 0.5px;
}

.nux-form-group small {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    font-weight: 300;
    font-style: italic;
}

.required {
    color: var(--nux-dark);
    font-weight: 400;
}

/* Campos de entrada */
.nux-form-group input[type="text"],
.nux-form-group input[type="email"],
.nux-form-group input[type="tel"],
.nux-form-group input[type="number"],
.nux-form-group input[type="date"],
.nux-form-group input[type="password"],
.nux-form-group textarea,
.nux-form-group select {
    width: 100%;
    padding: 14px 0;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid var(--nux-gris);
    border-radius: 0;
    background-color: transparent;
    transition: all 0.4s ease;
    box-sizing: border-box;
    color: var(--nux-dark);
    font-weight: 300;
    letter-spacing: 0.3px;
}

.nux-form-group input:focus,
.nux-form-group textarea:focus,
.nux-form-group select:focus {
    outline: none;
    border-bottom-color: var(--nux-nude);
    background-color: transparent;
}

.nux-form-group textarea {
    resize: vertical;
    min-height: 100px;
    padding-top: 10px;
    border: 1px solid var(--nux-gris);
    padding: 14px;
}

/* Filas de formulario */
.nux-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.nux-form-col-6 {
    flex: 1;
}

/* Grupos de radio */
.nux-form-radio-group {
    display: flex;
    gap: 30px;
    margin-bottom: 12px;
}

.nux-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 300;
    cursor: pointer;
    margin-bottom: 0;
    font-size: 13px;
    color: var(--nux-text);
    letter-spacing: 0.5px;
}

.nux-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--nux-nude);
}

/* Campos condicionales */
.nux-conditional-field {
    margin-top: 10px;
}

/* Checkbox */
.nux-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1.8;
    margin-bottom: 0;
    font-size: 12px;
    color: var(--nux-text);
    letter-spacing: 0.3px;
}

.nux-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--nux-nude);
    flex-shrink: 0;
}

.nux-checkbox-label a {
    color: var(--nux-nude);
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid var(--nux-nude);
    transition: opacity 0.3s ease;
}

.nux-checkbox-label a:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* Botón de envío */
.nux-form-submit {
    margin-top: 50px;
    text-align: center;
}

.nux-submit-button {
    display: inline-block;
    padding: 16px 60px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--nux-dark);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.nux-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease;
}

.nux-submit-button:hover {
    background: var(--nux-dark);
    transform: translateY(-1px);
}

.nux-submit-button:hover::before {
    left: 100%;
}

.nux-submit-button:active {
    transform: translateY(0);
}

/* Responsivo */
@media (max-width: 768px) {
    .nux-form-container {
        padding: 40px 25px;
        margin: 30px 15px;
    }

    .nux-logo {
        max-width: 140px;
        margin-bottom: 25px;
    }

    .nux-form-row {
        flex-direction: column;
        gap: 0;
    }

    .nux-form-section-title {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .nux-submit-button {
        width: 100%;
        padding: 16px 40px;
    }

    .nux-form-radio-group {
        flex-direction: column;
        gap: 15px;
    }
}

/* Estados de validación HTML5 */
input:invalid:not(:placeholder-shown) {
    border-bottom-color: #C89B9B;
}

input:valid:not(:placeholder-shown) {
    border-bottom-color: var(--nux-nude);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nux-form-message {
    animation: fadeIn 0.5s ease;
}

/* Personalización del placeholder */
input::placeholder,
textarea::placeholder {
    color: #bbb;
    opacity: 1;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.3px;
}

/* Mejoras de accesibilidad */
*:focus {
    outline: 1px solid var(--nux-nude);
    outline-offset: 3px;
}

button:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
    outline: 1px solid var(--nux-nude);
    outline-offset: 3px;
}

/* Loader para el botón (opcional) */
.nux-submit-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
    opacity: 0.7;
}

.nux-submit-button.loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Efecto hover en campos */
.nux-form-group input:hover:not(:focus),
.nux-form-group textarea:hover:not(:focus) {
    border-bottom-color: var(--nux-nude);
}

/* Autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    -webkit-text-fill-color: var(--nux-dark);
    transition: background-color 5000s ease-in-out 0s;
}
