/**
 * Amelia Booking Invitees - Estilos del Frontend v2
 *
 * Diseñado para integrarse visualmente dentro del step form de Amelia.
 * La sección se inyecta dentro del paso "Tu Información", antes del botón Continuar.
 */

/* ─── Contenedor principal ───────────────────────────────── */
.abi-invitees-section {
    margin: 12px 0 20px;
    padding: 0;
    font-family: inherit;
}

.abi-invitees-header {
    margin-bottom: 12px;
}

.abi-invitees-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #3d5188; /* Tono consistente con sidebar de Amelia */
}

.abi-invitees-subtitle {
    margin: 0;
    font-size: 13px;
    color: #8c8c8c;
}

/* ─── Lista de invitados ─────────────────────────────────── */
.abi-invitees-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.abi-invitee-row {
    animation: abiFadeIn 0.2s ease;
}

.abi-invitee-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
}

.abi-field {
    flex: 1 1 130px;
    min-width: 110px;
}

.abi-field-email {
    flex: 2 1 180px;
}

.abi-field-phone {
    flex: 1 1 150px;
}

.abi-invitee-fields input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.abi-invitee-fields input:focus {
    border-color: #3d5188;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(61, 81, 136, 0.12);
}

.abi-invitee-fields input::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

/* ─── Botón Agregar ──────────────────────────────────────── */
.abi-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 18px;
    background: transparent;
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    color: #3d5188;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.abi-btn-add:hover {
    border-color: #3d5188;
    background: rgba(61, 81, 136, 0.04);
    color: #2d3d6a;
}

.abi-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3d5188;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.abi-btn-add:hover .abi-btn-icon {
    background: #2d3d6a;
}

/* ─── Botón Quitar ───────────────────────────────────────── */
.abi-btn-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
}

.abi-btn-remove:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
}

/* ─── Animaciones ────────────────────────────────────────── */
@keyframes abiFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .abi-invitee-fields {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .abi-field,
    .abi-field-email,
    .abi-field-phone {
        flex: 1 1 auto;
    }

    .abi-btn-remove {
        align-self: flex-end;
        margin-top: -6px;
    }
}
