/* Reservas Transfer — Formulário público (tema mar/praia) */

.rt-form-wrap {
    /* Paleta principal: tons de mar (turquesa/teal) com acento coral */
    --rt-primary: #0891b2;          /* teal-600 */
    --rt-primary-dark: #0e7490;     /* teal-700 */
    --rt-primary-darker: #155e75;   /* teal-800 */
    --rt-primary-light: #cffafe;    /* cyan-100 */
    --rt-primary-lighter: #ecfeff;  /* cyan-50 */

    --rt-accent: #f97316;           /* orange-500 (coral) */
    --rt-accent-dark: #ea580c;      /* orange-600 */
    --rt-accent-light: #ffedd5;     /* orange-100 */

    --rt-success: #10b981;
    --rt-danger: #ef4444;
    --rt-danger-light: #fee2e2;
    --rt-warning: #f59e0b;
    --rt-warning-light: #fef3c7;

    --rt-text: #0f172a;             /* slate-900 */
    --rt-text-soft: #334155;        /* slate-700 */
    --rt-muted: #64748b;             /* slate-500 */
    --rt-border: #cbd5e1;            /* slate-300 */
    --rt-border-soft: #e2e8f0;       /* slate-200 */

    --rt-bg-form: #ffffff;
    --rt-bg-soft: #f0f9ff;           /* sky-50, levemente azulado */
    --rt-bg-page: linear-gradient(135deg, #cffafe 0%, #e0f2fe 50%, #fef3c7 100%);

    --rt-radius: 14px;
    --rt-radius-sm: 8px;
    --rt-shadow: 0 2px 8px rgba(8, 145, 178, .08), 0 1px 3px rgba(8, 145, 178, .06);
    --rt-shadow-md: 0 8px 24px rgba(8, 145, 178, .12), 0 4px 8px rgba(8, 145, 178, .08);

    max-width: 820px;
    margin: 2rem auto;
    padding: 1.25rem;
    color: var(--rt-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: var(--rt-bg-page);
    border-radius: calc(var(--rt-radius) + 6px);
    position: relative;
}

/* Decoração: ondinhas no topo do wrap */
.rt-form-wrap::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--rt-primary) 0%, #06b6d4 50%, var(--rt-accent) 100%);
    border-top-left-radius: calc(var(--rt-radius) + 6px);
    border-top-right-radius: calc(var(--rt-radius) + 6px);
}

.rt-form {
    background: var(--rt-bg-form);
    border: 1px solid var(--rt-border-soft);
    border-radius: var(--rt-radius);
    box-shadow: var(--rt-shadow-md);
    overflow: hidden;
}

/* ====== Progresso ====== */
.rt-progress {
    background: linear-gradient(135deg, var(--rt-primary) 0%, var(--rt-primary-dark) 100%);
    padding: 1.25rem 1rem;
    overflow-x: auto;
}

.rt-steps-bar {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    min-width: 700px;
}

.rt-step-bar {
    flex: 1;
    text-align: center;
    position: relative;
    color: rgba(255,255,255,.65);
    font-size: 12px;
    line-height: 1.2;
}

.rt-step-bar span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.4);
    color: rgba(255,255,255,.85);
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    transition: all .25s ease;
}

.rt-step-bar label {
    display: block;
    padding: 0 4px;
    color: rgba(255,255,255,.7);
    font-weight: 500;
}

.rt-step-bar.active span {
    background: var(--rt-accent);
    border-color: var(--rt-accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, .25);
    transform: scale(1.1);
}

.rt-step-bar.active label {
    color: #fff;
    font-weight: 600;
}

.rt-step-bar.done span {
    background: #fff;
    border-color: #fff;
    color: var(--rt-primary-dark);
}

.rt-step-bar.done label {
    color: rgba(255,255,255,.85);
}

/* Linha conectora entre steps */
.rt-step-bar:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: rgba(255,255,255,.25);
    z-index: 0;
}

.rt-step-bar.done:not(:last-child)::after {
    background: rgba(255,255,255,.7);
}

/* ====== Mensagens de erro ====== */
.rt-form-error {
    background: var(--rt-danger-light);
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-left: 4px solid var(--rt-danger);
    padding: .85rem 1rem;
    margin: 1rem 1.5rem 0;
    border-radius: var(--rt-radius-sm);
    font-size: .92rem;
    font-weight: 500;
}

/* ====== Steps ====== */
.rt-step {
    display: none;
    padding: 1.75rem;
}

.rt-step[data-active="true"] {
    display: block;
    animation: rt-step-in .3s ease;
}

@keyframes rt-step-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rt-step h2 {
    margin: 0 0 .35rem;
    font-size: 1.5rem;
    color: var(--rt-primary-darker);
    font-weight: 700;
}

.rt-step-desc {
    color: var(--rt-muted);
    margin: 0 0 1.5rem;
    font-size: .95rem;
}

.rt-subheading {
    margin: 1.75rem 0 .85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rt-primary-dark);
    border-top: 2px solid var(--rt-border-soft);
    padding-top: 1.1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.rt-info-box {
    background: var(--rt-primary-lighter);
    border-left: 4px solid var(--rt-primary);
    padding: .9rem 1rem;
    border-radius: var(--rt-radius-sm);
    margin: .75rem 0 1.5rem;
    font-size: .92rem;
    color: var(--rt-text-soft);
}

.rt-info-box p {
    margin: 0;
}

/* ====== Campos ====== */
.rt-field {
    margin-bottom: 1.1rem;
}

.rt-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.rt-pax-row {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 600px) {
    .rt-field-row, .rt-pax-row {
        grid-template-columns: 1fr;
    }
    .rt-form-wrap {
        padding: .5rem;
        margin: .5rem auto;
    }
    .rt-step { padding: 1.25rem; }
}

.rt-label {
    display: block;
    font-weight: 600;
    color: var(--rt-text-soft);
    margin-bottom: .35rem;
    font-size: .92rem;
}

.rt-required {
    color: var(--rt-accent);
    font-weight: 700;
}

.rt-hint {
    display: block;
    font-size: .8rem;
    color: var(--rt-muted);
    margin-top: .3rem;
}

.rt-form input[type="text"],
.rt-form input[type="email"],
.rt-form input[type="number"],
.rt-form input[type="date"],
.rt-form input[type="time"],
.rt-form input[type="datetime-local"],
.rt-form select,
.rt-form textarea {
    width: 100%;
    padding: .65rem .85rem;
    border: 1.5px solid var(--rt-border);
    border-radius: var(--rt-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--rt-text);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}

.rt-form input:focus,
.rt-form select:focus,
.rt-form textarea:focus {
    outline: none;
    border-color: var(--rt-primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, .15);
}

.rt-form input[disabled] {
    background: var(--rt-bg-soft);
    color: var(--rt-muted);
}

.rt-checkbox-field {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.rt-checkbox-field label {
    cursor: pointer;
    font-size: .94rem;
    color: var(--rt-text-soft);
}

.rt-checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--rt-primary);
    cursor: pointer;
}

/* ====== Radio cards (tipo de viagem) ====== */
.rt-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.rt-radio-group-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 600px) {
    .rt-radio-group-3 { grid-template-columns: 1fr; }
}

.rt-radio-card {
    display: block;
    padding: 1rem .85rem;
    border: 2px solid var(--rt-border);
    border-radius: var(--rt-radius-sm);
    cursor: pointer;
    text-align: center;
    transition: all .2s ease;
    background: #fff;
    position: relative;
}

.rt-radio-card:hover {
    border-color: var(--rt-primary);
    background: var(--rt-primary-lighter);
}

.rt-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rt-radio-card:has(input:checked) {
    border-color: var(--rt-primary);
    background: var(--rt-primary-light);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, .15);
}

.rt-radio-card:has(input:checked) .rt-radio-label strong {
    color: var(--rt-primary-darker);
}

.rt-radio-label strong {
    display: block;
    color: var(--rt-text);
    font-size: 1rem;
}

/* ====== Veículos ====== */
.rt-vehicles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rt-vehicle-card {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--rt-border);
    border-radius: var(--rt-radius);
    cursor: pointer;
    transition: all .2s ease;
    background: #fff;
}

.rt-vehicle-card:hover {
    border-color: var(--rt-primary);
    box-shadow: var(--rt-shadow-md);
    transform: translateY(-2px);
}

.rt-vehicle-card.rt-vehicle-selected {
    border-color: var(--rt-primary);
    background: var(--rt-primary-lighter);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, .15);
}

.rt-vehicle-card.rt-vehicle-disabled {
    opacity: .55;
    cursor: not-allowed;
    background: var(--rt-bg-soft);
}

.rt-vehicle-card.rt-vehicle-disabled:hover {
    transform: none;
    border-color: var(--rt-border);
    box-shadow: none;
}

.rt-vehicle-img {
    width: 100px;
    height: 70px;
    background: linear-gradient(135deg, var(--rt-primary-light), var(--rt-primary-lighter));
    border-radius: var(--rt-radius-sm);
    object-fit: cover;
}

.rt-vehicle-info h3 {
    margin: 0 0 .25rem;
    font-size: 1.1rem;
    color: var(--rt-primary-darker);
}

.rt-vehicle-meta {
    margin: 0 0 .35rem;
    font-size: .85rem;
    color: var(--rt-muted);
    font-weight: 500;
}

.rt-vehicle-desc {
    margin: 0;
    font-size: .85rem;
    color: var(--rt-text-soft);
}

.rt-vehicle-unavailable-msg {
    margin: .35rem 0 0;
    font-size: .82rem;
    color: var(--rt-danger);
    font-style: italic;
}

.rt-vehicle-price {
    text-align: right;
}

.rt-price-total {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--rt-primary-darker);
    line-height: 1;
}

.rt-price-signal {
    font-size: .82rem;
    color: var(--rt-accent-dark);
    font-weight: 600;
    margin-top: .3rem;
}

@media (max-width: 600px) {
    .rt-vehicle-card {
        grid-template-columns: 80px 1fr;
    }
    .rt-vehicle-price {
        grid-column: 1 / -1;
        text-align: left;
        border-top: 1px solid var(--rt-border-soft);
        padding-top: .65rem;
    }
}

.rt-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--rt-muted);
    background: var(--rt-bg-soft);
    border-radius: var(--rt-radius-sm);
    margin: 0;
}

/* ====== Recomendação de horário (auto-cálculo) ====== */
.rt-flight-recommendation {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--rt-warning-light), #fff7ed);
    border-left: 4px solid var(--rt-warning);
    padding: 1.1rem 1.2rem;
    border-radius: var(--rt-radius-sm);
    margin: 1.25rem 0;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .12);
}

.rt-flight-recommendation-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.rt-flight-recommendation-body {
    flex: 1;
}

.rt-flight-recommendation-body strong {
    display: block;
    margin-bottom: .35rem;
    color: #92400e;
    font-size: .98rem;
    font-weight: 700;
}

.rt-flight-recommendation-body p {
    margin: 0;
    color: var(--rt-text);
    font-size: .94rem;
    line-height: 1.5;
}

/* ====== Passageiros ====== */
.rt-passenger-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: .75rem;
    margin-bottom: .85rem;
    padding: .75rem;
    background: var(--rt-bg-soft);
    border-radius: var(--rt-radius-sm);
    border: 1px solid var(--rt-border-soft);
}

.rt-passenger-row label {
    font-size: .8rem;
    color: var(--rt-muted);
    margin-bottom: .25rem;
    display: block;
}

@media (max-width: 600px) {
    .rt-passenger-row { grid-template-columns: 1fr; }
}

/* ====== Resumo final (cards IDA / VOLTA) ====== */
.rt-summary-block {
    border: 1px solid var(--rt-border-soft);
    border-radius: var(--rt-radius);
    padding: 1.1rem;
    margin-bottom: 1rem;
    background: var(--rt-bg-soft);
}

.rt-summary-block h3 {
    margin: 0 0 .75rem;
    font-size: 1.05rem;
    color: var(--rt-primary-darker);
    font-weight: 700;
}

.rt-summary-leg {
    border-radius: var(--rt-radius);
    margin-bottom: 1.1rem;
    overflow: hidden;
    box-shadow: var(--rt-shadow);
}

.rt-summary-leg-header {
    background: linear-gradient(135deg, var(--rt-primary), var(--rt-primary-dark));
    color: #fff;
    padding: .85rem 1.2rem;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    letter-spacing: .02em;
}

.rt-summary-leg.rt-leg-return .rt-summary-leg-header {
    background: linear-gradient(135deg, var(--rt-accent), var(--rt-accent-dark));
}

.rt-summary-leg-body {
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--rt-border-soft);
    border-top: 0;
}

.rt-summary-leg-section {
    padding: .5rem 0;
}

.rt-summary-leg-section + .rt-summary-leg-section {
    border-top: 1px dashed var(--rt-border);
    margin-top: .65rem;
    padding-top: .85rem;
}

.rt-summary-leg-section h4 {
    margin: 0 0 .45rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--rt-primary);
    font-weight: 700;
}

.rt-leg-return .rt-summary-leg-section h4 {
    color: var(--rt-accent-dark);
}

.rt-summary-row {
    display: flex;
    justify-content: space-between;
    padding: .25rem 0;
    font-size: .92rem;
    gap: 1rem;
}

.rt-summary-row span {
    color: var(--rt-muted);
    flex-shrink: 0;
}

.rt-summary-row strong {
    color: var(--rt-text);
    text-align: right;
    word-break: break-word;
    font-weight: 600;
}

.rt-summary-total {
    margin-top: .65rem;
    padding-top: .85rem;
    border-top: 2px solid var(--rt-primary);
}

.rt-summary-total .rt-amount-primary {
    color: var(--rt-accent-dark);
    font-size: 1.4rem;
    font-weight: 800;
}

/* ====== Ações dos steps (botões) ====== */
.rt-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .85rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--rt-border-soft);
}

.rt-step-actions .rt-next:only-child,
.rt-step-actions > :first-child:not(.rt-prev) {
    margin-left: auto;
}

.rt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .7rem 1.5rem;
    border: 0;
    border-radius: var(--rt-radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    transition: all .2s ease;
    text-decoration: none;
    line-height: 1.2;
}

.rt-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.rt-btn-primary {
    background: linear-gradient(135deg, var(--rt-primary), var(--rt-primary-dark));
    color: #fff;
    box-shadow: 0 2px 6px rgba(8, 145, 178, .35);
}

.rt-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--rt-primary-dark), var(--rt-primary-darker));
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(8, 145, 178, .45);
}

.rt-btn-primary.rt-submit {
    background: linear-gradient(135deg, var(--rt-accent), var(--rt-accent-dark));
    box-shadow: 0 2px 8px rgba(249, 115, 22, .4);
    padding: .85rem 2rem;
    font-size: 1.05rem;
}

.rt-btn-primary.rt-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--rt-accent-dark), #c2410c);
    box-shadow: 0 4px 14px rgba(249, 115, 22, .5);
}

.rt-btn-secondary {
    background: #fff;
    color: var(--rt-primary-dark);
    border: 1.5px solid var(--rt-border);
}

.rt-btn-secondary:hover:not(:disabled) {
    background: var(--rt-primary-lighter);
    border-color: var(--rt-primary);
}

.rt-btn-sm {
    padding: .4rem 1rem;
    font-size: .88rem;
}
