/* Formulario flotante */
.floating-form-container {
    position: absolute;
    top: 44%;
    right: 30px;
    transform: translateY(-50%);
    background: rgba(250, 250, 250, 70%);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 350px;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
}

.floating-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.floating-form-header h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.floating-form-header p {
    color: #232727;
    font-size: 11px;
    line-height: 1.4;
}

.floating-form-header #subtitle {
    width: 100%;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-group.half {
    flex: 1;
}

.floating-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.floating-form input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    top: -18px;
}

.submit-btn:hover {
    background: #c0392b;
}

.submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Para la sección de migración */
.about-skill-area {
    position: relative;
}

#recaptcha-container {
    margin: 10px 0;
}

/* Mensajes de respuesta */
.form-message {
    padding: 8px;
    border-radius: 5px;
    margin-top: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estilos para intl-tel-input */
.iti {
    width: 100%;
}

.iti__flag-container {
    padding: 0 10px;
}

.iti__selected-flag {
    padding: 0 8px;
}

.iti__country-list {
    font-size: 14px;
    white-space: nowrap;
}

#phoneInput {
    padding-left: 52px !important;
}

.form-group.full-width {
    width: 100%;
}

/* Asegurar que el contenedor del teléfono ocupe toda la línea */
.form-row .form-group.full-width {
    flex: 0 0 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-form-container {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        transform: none;
        margin: 20px 0;
    }
}