/* =========================================================
   Funtour Cotización – Estilos del Formulario
   Diseño limpio tipo WPForms sobre fondo blanco / gris muy suave
   ========================================================= */

/* ------- Reset / Scope ------- */
.funtour-form-wrapper *,
.funtour-form-wrapper *::before,
.funtour-form-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ------- Contenedor principal ------- */
.funtour-form-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    color: #1a1a1a;
    max-width: 860px;
    width: 100%;
}

/* ------- Título ------- */
.funtour-form-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin-bottom: 28px;
}

/* ------- Honeypot ------- */
.funtour-honeypot {
    position: absolute !important;
    overflow: hidden !important;
    height: 1px !important;
    width: 1px !important;
    z-index: -1000 !important;
    padding: 0 !important;
}

/* ------- Grupos de campo ------- */
.funtour-field-group {
    margin-bottom: 18px;
    width: 100%;
}

/* ------- Etiquetas ------- */
.funtour-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.2;
}

.funtour-required {
    color: #c0392b;
    margin-left: 2px;
}

/* Sublabel debajo del input (Nombre / Apellidos) */
.funtour-sublabel {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    line-height: 1;
}

/* ------- Inputs textuales ------- */
.funtour-input {
    display: block;
    width: 100%;
    height: 43px;
    padding: 0 14px;
    font-size: 16px;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.funtour-input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
}

.funtour-input::placeholder {
    color: #bbb;
}

/* ------- Textarea ------- */
.funtour-textarea {
    height: auto !important;
    padding: 11px 14px !important;
    resize: vertical;
    min-height: 120px;
}

/* ------- Select ------- */
.funtour-select {
    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='%23555' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px !important;
    cursor: pointer;
    color: #555;
}

.funtour-select option {
    color: #1a1a1a;
}

/* ------- Layout de filas y columnas ------- */
.funtour-row {
    display: grid;
    gap: 16px;
    width: 100%;
    margin-bottom: 18px;
}

.funtour-cols-2 { grid-template-columns: 1fr 1fr; }
.funtour-cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.funtour-cols-5 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }

.funtour-row .funtour-field-group {
    margin-bottom: 0;
}

/* ------- Teléfono con selector de país ------- */
.funtour-phone-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.funtour-phone-wrapper:focus-within {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
}

.funtour-phone-flag {
    display: flex;
    align-items: center;
    padding: 0 8px 0 10px;
    gap: 4px;
    border-right: 1px solid #d0d0d0;
    background: #f8f8f8;
    position: relative;
    cursor: pointer;
    min-width: 58px;
    justify-content: center;
}

.funtour-flag-cl {
    font-size: 20px;
    line-height: 1;
}

.funtour-flag-arrow {
    font-size: 11px;
    color: #666;
    pointer-events: none;
}

/* Select oculto absolutamente posicionado sobre el flag */
.funtour-phone-select {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 16px;
}

.funtour-phone-input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
    height: 43px;
    padding-left: 12px !important;
}

.funtour-phone-input:focus {
    box-shadow: none !important;
}

/* ------- Autocomplete ------- */
.funtour-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.funtour-autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-top: none;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.funtour-autocomplete-item {
    padding: 10px 14px;
    font-size: 15px;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

.funtour-autocomplete-item:last-child {
    border-bottom: none;
}

.funtour-autocomplete-item:hover,
.funtour-autocomplete-active {
    background: #e3f2fd;
    color: #1565c0;
}

/* ------- Checkboxes de destinos ------- */
.funtour-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 6px;
}

.funtour-checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    cursor: pointer;
    user-select: none;
}

.funtour-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #e2542e;
    flex-shrink: 0;
}

/* ------- Mensajes de respuesta ------- */
.funtour-message {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 16px;
    border-left: 4px solid transparent;
}

.funtour-message.success {
    background: #e8f5e9;
    border-left-color: #2e7d32;
    color: #1b5e20;
}

.funtour-message.error {
    background: #ffebee;
    border-left-color: #c62828;
    color: #b71c1c;
}

.funtour-message.loading {
    background: #e3f2fd;
    border-left-color: #1565c0;
    color: #0d47a1;
}

/* ------- Botón de envío ------- */
.funtour-submit-container {
    margin-top: 10px;
}

.funtour-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 26px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #e2542e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.01em;
}

.funtour-submit-btn:hover {
    background: #c9401b;
}

.funtour-submit-btn:active {
    transform: scale(0.98);
}

.funtour-submit-btn:disabled {
    background: #90caf9;
    cursor: not-allowed;
}

/* ------- Validación visual ------- */
.funtour-input.funtour-invalid,
.funtour-phone-wrapper.funtour-invalid {
    border-color: #c62828;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.12);
}

.funtour-error-text {
    display: block;
    font-size: 13px;
    color: #c62828;
    margin-top: 4px;
}

/* ------- Responsive ------- */
@media (max-width: 768px) {
    .funtour-cols-2 { grid-template-columns: 1fr; }
    .funtour-cols-4 { grid-template-columns: 1fr 1fr; }
    .funtour-cols-5 { grid-template-columns: 1fr 1fr; }
    .funtour-form-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .funtour-cols-4 { grid-template-columns: 1fr; }
    .funtour-cols-5 { grid-template-columns: 1fr; }
    .funtour-checkboxes { gap: 8px 16px; }
}
