/* ═══════════════════════════════════════════════════════════
   CAT Booking - Frontend Styles (Minimalist & Professional)
   ═══════════════════════════════════════════════════════════ */

.cat-booking-wrapper {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
}

/* ─── Tabs ─────────────────────────────────────────────────── */
.cat-booking-tabs {
    display: flex;
    gap: 0;
}

.cat-booking-tabs .cat-tab {
    flex: 1;
    padding: 14px 20px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    outline: none;
    position: relative;
}

.cat-booking-tabs .cat-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.cat-booking-tabs .cat-tab.active::after {
    width: 40%;
}

/* ─── Tab Content ──────────────────────────────────────────── */
.cat-tab-content {
    display: none;
    padding: 0;
}

.cat-tab-content.active {
    display: block;
    animation: catFadeIn 0.3s ease;
}

@keyframes catFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Form Grid ────────────────────────────────────────────── */
.cat-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.cat-field-full {
    grid-column: 1 / -1;
}

/* ─── Field ────────────────────────────────────────────────── */
.cat-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cat-field label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.cat-required {
    font-size: 11px;
}

.cat-field input,
.cat-field select,
.cat-field textarea {
    width: 100%;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cat-field select {
    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='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px !important;
}

.cat-field textarea {
    resize: vertical;
    min-height: 70px;
}

.cat-field input::placeholder,
.cat-field select::placeholder,
.cat-field textarea::placeholder {
    color: #aaa;
    font-size: 13px;
}

/* ─── Focus ────────────────────────────────────────────────── */
.cat-field input:focus,
.cat-field select:focus,
.cat-field textarea:focus {
    outline: none;
}

/* ─── Error ────────────────────────────────────────────────── */
.cat-field.error input,
.cat-field.error select,
.cat-field.error textarea {
    border-width: 1.5px;
}

.cat-field .error-msg {
    font-size: 12px;
    min-height: 0;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.cat-field.error .error-msg {
    min-height: 16px;
}

/* ─── Transporte body (hidden until selection) ─────────────── */
.cat-transporte-body {
    animation: catFadeIn 0.35s ease;
}

/* ─── Divider ──────────────────────────────────────────────── */
.cat-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

/* ─── Personal fields spacing ──────────────────────────────── */
.cat-personal-fields {
    margin-top: 4px;
}

/* ─── Button ───────────────────────────────────────────────── */
.cat-form-actions {
    text-align: center;
    padding-top: 20px;
}

.cat-booking-btn {
    display: inline-block;
    padding: 14px 44px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    outline: none;
    text-transform: uppercase;
}

.cat-booking-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cat-booking-btn:active {
    transform: translateY(0);
}

.cat-booking-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── Conditional Fields ───────────────────────────────────── */
.cat-conditional {
    display: none;
}

.cat-conditional.visible {
    display: flex;
    animation: catSlideDown 0.25s ease;
}

@keyframes catSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Success Overlay ──────────────────────────────────────── */
.cat-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: catFadeIn 0.4s ease;
}

.cat-success-content {
    text-align: center;
    padding: 30px;
}

.cat-success-icon {
    color: #27ae60;
    margin-bottom: 15px;
}

.cat-success-content p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    max-width: 360px;
}

/* ─── Loading Overlay ──────────────────────────────────────── */
.cat-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
}

.cat-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #ddd;
    border-top-color: #00B4D8;
    border-radius: 50%;
    animation: catSpin 0.7s linear infinite;
}

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

/* ─── Honeypot ─────────────────────────────────────────────── */
.cat-hp-field {
    position: absolute;
    left: -9999px;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .cat-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cat-field-full {
        grid-column: 1;
    }

    .cat-booking-tabs .cat-tab {
        padding: 12px 15px;
        font-size: 14px;
    }

    .cat-booking-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .cat-booking-wrapper {
        box-shadow: none;
        border-radius: 0 !important;
    }
}
