/* ============================================================
   CF7 — Estilos personalizados para Contact Form 7
   Tema: PC Web Chile - Belleza & Estética
   Paleta: Rosa + Dorado sobre fondo oscuro
   ============================================================ */

/* Wrapper general */
.wpcf7 {
    width: 100%;
}

/* --- Quitar br agregados por CF7 --- */
.wpcf7 br,
.wpcf7 form br,
.wpcf7 p br {
    display: none;
}

.wpcf7 form p {
    margin: 0;
}

/* ============================================================
   LAYOUT — filas y columnas personalizadas
   ============================================================ */
.pcwcb-cf7-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pcwcb-cf7-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.pcwcb-cf7-col {
    flex: 1;
    min-width: 0;
}

.pcwcb-cf7-col-full {
    flex: 0 0 100%;
    width: 100%;
}

@media (max-width: 600px) {
    .pcwcb-cf7-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* ============================================================
   LABEL — Etiquetas de campo
   ============================================================ */
.wpcf7-form-control-wrap {
    display: block;
    position: relative;
}

/* ============================================================
   INPUTS & TEXTAREA & SELECT — Campos de formulario
   ============================================================ */
.wpcf7-form-control:not(input[type="submit"]),
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    background: #211018;
    border: 1px solid rgba(194, 24, 91, .2);
    border-radius: 12px;
    color: #FAF0F4;
    padding: 13px 16px;
    font-size: .9rem;
    font-family: 'Nunito', 'Inter', system-ui, sans-serif;
    line-height: 1.5;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    display: block;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 textarea::placeholder {
    color: #8C6479;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: #E91E8C;
    box-shadow: 0 0 0 3px rgba(194, 24, 91, .15);
    background: #160C11;
}

.wpcf7 select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238C6479' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.wpcf7 select option {
    background: #160C11;
    color: #FAF0F4;
}

.wpcf7 textarea {
    resize: vertical;
    min-height: 110px;
}

/* ============================================================
   ERRORES DE VALIDACIÓN
   ============================================================ */
.wpcf7-not-valid {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12) !important;
}

.wpcf7-not-valid-tip {
    display: block;
    font-size: .78rem;
    color: #F87171;
    margin-top: 6px;
    padding-left: 4px;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */
.wpcf7-submit,
.wpcf7 input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #880E4F 0%, #C2185B 100%);
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 15px 32px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Nunito', 'Inter', system-ui, sans-serif;
    letter-spacing: .01em;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 8px 32px rgba(194, 24, 91, .35);
    text-align: center;
    display: block;
    position: relative;
    overflow: hidden;
}

.wpcf7-submit:hover,
.wpcf7 input[type="submit"]:hover {
    background: linear-gradient(135deg, #C2185B 0%, #E91E8C 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(194, 24, 91, .5);
}

.wpcf7-submit:focus,
.wpcf7 input[type="submit"]:focus {
    outline: 3px solid rgba(194, 24, 91, .4);
    outline-offset: 3px;
}

.wpcf7-submit:disabled,
.wpcf7 input[type="submit"]:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   SPINNER (CF7 por defecto)
   ============================================================ */
.wpcf7 .ajax-loader {
    border-color: rgba(194, 24, 91, .5);
    border-left-color: #E91E8C;
    display: none;
    vertical-align: middle;
    margin-left: 8px;
}

/* ============================================================
   MENSAJES DE RESPUESTA
   ============================================================ */
.wpcf7-response-output {
    font-size: .88rem;
    border-radius: 12px;
    padding: 14px 18px !important;
    margin: 16px 0 0 !important;
    border: 1px solid transparent;
    font-family: 'Nunito', sans-serif;
    line-height: 1.5;
}

/* Éxito */
.wpcf7-mail-sent-ok {
    background: rgba(34, 197, 94, .08) !important;
    border-color: rgba(34, 197, 94, .3) !important;
    color: #86EFAC !important;
}

/* Error */
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-aborted,
.wpcf7-validation-errors {
    background: rgba(239, 68, 68, .08) !important;
    border-color: rgba(239, 68, 68, .3) !important;
    color: #FCA5A5 !important;
}

/* ============================================================
   DISCLAIMER / AVISO PRIVACIDAD (si se usa)
   ============================================================ */
.pcwcb-cf7-disclaimer {
    font-size: .78rem;
    color: #8C6479;
    text-align: center;
    padding-top: 8px;
    display: block;
}

/* ============================================================
   ACCEPT BOX (checkbox de aceptación)
   ============================================================ */
.wpcf7-acceptance .wpcf7-form-control-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wpcf7-acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(194, 24, 91, .3);
    border-radius: 4px;
    background: #211018;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #C2185B;
}
