/**
 * Plugstudio WhatsApp Form for Elementor - Stylesheet
 * 
 * Sistema de maquetación CSS Grid de 10 columnas
 * para anchos porcentuales del 10% al 100%.
 */

/* Contenedor del formulario */
.plstwf-form {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
}

.plstwf-form *,
.plstwf-form *::before,
.plstwf-form *::after {
    box-sizing: inherit;
}

/* Rejilla CSS Grid de 10 columnas */
.plstwf-fields {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

/* Columna individual de campo */
.plstwf-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Clases de ancho de 10 columnas (10% a 100%) */
.plstwf-width-10  { grid-column: span 1; }
.plstwf-width-20  { grid-column: span 2; }
.plstwf-width-30  { grid-column: span 3; }
.plstwf-width-40  { grid-column: span 4; }
.plstwf-width-50  { grid-column: span 5; }
.plstwf-width-60  { grid-column: span 6; }
.plstwf-width-70  { grid-column: span 7; }
.plstwf-width-80  { grid-column: span 8; }
.plstwf-width-90  { grid-column: span 9; }
.plstwf-width-100 { grid-column: span 10; }

/* Label */
.plstwf-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Input */
.plstwf-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.5;
}

.plstwf-input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.plstwf-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Contenedor del botón */
.plstwf-submit-wrapper {
    margin-top: 20px;
    width: 100%;
}

.plstwf-submit-wrapper.plstwf-align-left {
    text-align: left;
}

.plstwf-submit-wrapper.plstwf-align-center {
    text-align: center;
}

.plstwf-submit-wrapper.plstwf-align-right {
    text-align: right;
}

.plstwf-submit-wrapper.plstwf-align-justify {
    text-align: inherit;
}

.plstwf-submit-wrapper.plstwf-align-justify .plstwf-submit {
    width: 100%;
    display: block;
}

/* Botón */
.plstwf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background-color: #25D366;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.3;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.plstwf-submit:hover {
    background-color: #1ebe5d;
}

.plstwf-submit:active {
    transform: translateY(1px);
}

/* Aviso de edición en Elementor */
.plstwf-editor-notice {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ==========================================
 * RESPONSIVE MÓVIL (<= 767px)
 * Todos los campos pasan automáticamente al 100%
 * ========================================== */
@media (max-width: 767px) {
    .plstwf-field {
        grid-column: 1 / -1 !important;
    }
}
