/* Importar fuente Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Contenedor del formulario con fondo oscuro */
.framer-form-container {
    position: relative;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
}

/* Estilos para el formulario de Framer */
.framer-1idobxb.custom-cotizador-form {
    will-change: transform;
    opacity: 1;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    font-family: 'Inter', 'Inter Placeholder', sans-serif;
    overflow: visible !important;
}

/* Fila para campos lado a lado */
.form-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    overflow: visible !important;
}

/* Grupos de campos */
.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    width: 100%;
    overflow: visible !important;
}

.form-field-full {
    width: 100%;
    grid-column: 1 / -1;
}

.form-field-half {
    width: 100%;
}

/* Labels blancos */
.framer-1idobxb.custom-cotizador-form .framer-label {
    font-family: 'Inter', 'Inter Placeholder', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    display: block;
}

/* Selects con fondo gris oscuro */
.framer-1idobxb.custom-cotizador-form .framer-form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Inter', 'Inter Placeholder', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #FFFFFF;
    background-color: #363A4B;
    border: none;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFFFFF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Input de autocomplete (con flecha) */
.framer-1idobxb.custom-cotizador-form .autocomplete-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFFFFF' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
    padding: 14px 40px 14px 16px !important;
    cursor: text !important;
    color: #FFFFFF !important;
    background-color: #363A4B !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    height: 49px !important;
    min-height: 49px !important;
    max-height: 49px !important;
    box-sizing: border-box !important;
    border: none !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

.framer-1idobxb.custom-cotizador-form .autocomplete-input:hover {
    background-color: #3F4458 !important;
}

.framer-1idobxb.custom-cotizador-form .autocomplete-input:focus {
    background-color: #3F4458 !important;
    box-shadow: 0 0 0 2px rgba(42, 75, 155, 0.3) !important;
}

.framer-1idobxb.custom-cotizador-form .autocomplete-input::placeholder {
    color: #A0A0A0 !important;
    opacity: 1;
}

.framer-1idobxb.custom-cotizador-form .autocomplete-input::-webkit-input-placeholder {
    color: #A0A0A0 !important;
}

.framer-1idobxb.custom-cotizador-form .autocomplete-input::-moz-placeholder {
    color: #A0A0A0 !important;
}

.framer-1idobxb.custom-cotizador-form .autocomplete-input:-ms-input-placeholder {
    color: #A0A0A0 !important;
}

.framer-1idobxb.custom-cotizador-form .framer-form-input:hover {
    background-color: #3F4458;
}

.framer-1idobxb.custom-cotizador-form .framer-form-input:focus {
    outline: none;
    background-color: #3F4458;
    box-shadow: 0 0 0 2px rgba(42, 75, 155, 0.3);
}

/* Placeholder gris claro */
.framer-1idobxb.custom-cotizador-form .framer-form-input option {
    padding: 12px;
    background-color: #363A4B;
    color: #FFFFFF;
}

.framer-1idobxb.custom-cotizador-form .framer-form-input option:first-child {
    color: #A0A0A0;
}

/* Estilo para el placeholder cuando está seleccionado */
.framer-1idobxb.custom-cotizador-form .framer-form-input:invalid {
    color: #A0A0A0;
}

.framer-1idobxb.custom-cotizador-form .framer-form-input:valid {
    color: #FFFFFF;
}

/* Botón submit azul */
.framer-1idobxb.custom-cotizador-form .cotizador-submit-btn.framer-submit {
    width: 100%;
    padding: 14px 24px;
    font-family: 'Inter', 'Inter Placeholder', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #FFFFFF;
    background-color: #2A4B9B;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0;
}

.framer-1idobxb.custom-cotizador-form .cotizador-submit-btn.framer-submit:hover {
    background-color: #1E3A7A;
}

.framer-1idobxb.custom-cotizador-form .cotizador-submit-btn.framer-submit:active {
    background-color: #152A5C;
}

.framer-1idobxb.custom-cotizador-form .cotizador-submit-btn.framer-submit:disabled {
    background-color: #4A5568;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading overlay */
.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0A1433;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    /* border-radius: 12px; */
    z-index: 10;
}

.form-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #2A4B9B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.form-loading-text {
    color: #FFFFFF;
    font-family: 'Inter', 'Inter Placeholder', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Error overlay */
.form-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0A1433;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10;
    padding: 40px;
    box-sizing: border-box;
}

.form-error-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.form-error-message {
    color: #FFFFFF;
    font-family: 'Inter', 'Inter Placeholder', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    text-align: center;
    line-height: 1.6;
    max-width: 500px;
}

/* Estilos para selects deshabilitados */
.framer-form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #2A2D3A;
}

.cotizador-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Autocomplete wrapper */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
    overflow: visible !important;
    z-index: 1;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
    position: absolute;
    background-color: #363A4B;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 999999 !important;
    display: none;
}

/* Autocomplete item */
.autocomplete-item {
    padding: 12px 16px;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-family: 'Inter', 'Inter Placeholder', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: #3F4458;
}

.autocomplete-item:first-child {
    border-radius: 8px 8px 0 0;
}

.autocomplete-item:last-child {
    border-radius: 0 0 8px 8px;
}

.autocomplete-no-results {
    color: #A0A0A0;
    cursor: default;
}

.autocomplete-no-results:hover {
    background-color: transparent;
}

/* Scrollbar para el dropdown */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: #2A2D3A;
    border-radius: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #4A5568;
    border-radius: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #5A6578;
}

/* Responsive - en móviles los campos se apilan */
@media (max-width: 768px) {
    
    
    .framer-1idobxb.custom-cotizador-form {
        gap: 20px;
    }
    
    .form-fields-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .framer-1idobxb.custom-cotizador-form .framer-form-input {
        padding: 12px 14px;
        padding-right: 38px;
        font-size: 14px;
    }
    
    .framer-1idobxb.custom-cotizador-form .cotizador-submit-btn.framer-submit {
        padding: 12px 20px;
        font-size: 14px;
    }
}
