.vrb-tr-wrap {
    max-width: 1040px;
    margin: 24px auto;
    font-family: inherit;
}

.vrb-tr-type-vertical {
    max-width: 420px;
}

.vrb-tr-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    scroll-margin-top: 96px;
}

.vrb-tr-card h3 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 22px;
}

.vrb-tr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.vrb-tr-type-horizontal .vrb-tr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vrb-tr-date-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
    margin-top: 14px;
}

.vrb-tr-type-horizontal .vrb-tr-date-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vrb-tr-type-vertical .vrb-tr-grid,
.vrb-tr-type-vertical .vrb-tr-date-row,
.vrb-tr-type-vertical .vrb-tr-summary {
    grid-template-columns: 1fr;
}

.vrb-tr-type-vertical .vrb-tr-submit-col {
    min-width: 0;
}

.vrb-tr-submit-col {
    min-width: 0;
}

.vrb-col label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #334155;
}

.vrb-col label span,
.vrb-tr-help {
    color: #64748b;
    font-weight: 400;
}

.vrb-tr-card input,
.vrb-tr-card select,
.vrb-tr-card textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 11px 12px;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
}

.vrb-tr-card textarea {
    resize: vertical;
    min-height: 170px;
}

.vrb-tr-button {
    margin-top: 0;
    border: 0;
    border-radius: 3px;
    padding: 12px 16px;
    background: #0f766e;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.vrb-tr-submit-col .vrb-tr-button {
    width: 100%;
}

.vrb-tr-button:hover {
    background: #115e59;
}

.vrb-tr-button-muted {
    background: #e2e8f0;
    color: #0f172a;
}

.vrb-tr-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vrb-tr-captcha {
    margin: 18px 0 4px;
}

.vrb-tr-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.vrb-tr-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    background: #f0f9ff;
    color: #075985;
    font-weight: 700;
}

.vrb-tr-progress[hidden] {
    display: none;
}

.vrb-tr-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #bae6fd;
    border-top-color: #0f766e;
    border-radius: 999px;
    animation: vrb-tr-spin 0.8s linear infinite;
    flex: 0 0 auto;
}

.vrb-tr-is-submitting .vrb-tr-button {
    cursor: wait;
    opacity: 0.75;
}

.vrb-tr-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
}

.vrb-tr-loading-overlay[hidden] {
    display: none;
}

.vrb-tr-loading-box {
    width: min(420px, 100%);
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 26px 24px;
    border-radius: 18px;
    background: #fff;
    color: #0f172a;
    text-align: center;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.vrb-tr-loading-box strong {
    font-size: 18px;
}

.vrb-tr-loading-box span:last-child {
    color: #475569;
}

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

.vrb-tr-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.vrb-tr-summary div {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
}

.vrb-tr-summary span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 4px;
}

.vrb-tr-summary strong {
    display: block;
    color: #0f172a;
}

.vrb-tr-section-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.vrb-tr-section-heading .vrb-tr-section-title {
    margin-bottom: 0;
}

.vrb-tr-section-heading span {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.vrb-tr-alert {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.vrb-tr-alert ul {
    margin: 0 0 0 18px;
}

.vrb-tr-alert-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.vrb-tr-alert-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.vrb-tr-passenger-table-wrap {
    overflow-x: auto;
    margin-bottom: 10px;
}

.vrb-tr-passenger-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.vrb-tr-passenger-table th {
    padding: 0 8px 2px;
    color: #475569;
    font-size: 13px;
    text-align: left;
}

.vrb-tr-passenger-table td {
    padding: 8px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.vrb-tr-passenger-table td:first-child {
    width: 46px;
    border-left: 1px solid #e2e8f0;
    border-radius: 10px 0 0 10px;
    font-weight: 800;
}

.vrb-tr-passenger-table td:last-child {
    width: 76px;
    border-right: 1px solid #e2e8f0;
    border-radius: 0 10px 10px 0;
}

.vrb-tr-passenger-table input {
    min-height: 40px;
    padding: 8px 10px;
}

.vrb-tr-passenger-add,
.vrb-tr-passenger-remove {
    border: 1px solid #0f766e;
    border-radius: 8px;
    background: #fff;
    color: #0f766e;
    cursor: pointer;
    font-weight: 800;
    padding: 8px 10px;
}

.vrb-tr-passenger-remove {
    border-color: #dc2626;
    color: #dc2626;
}

.vrb-tr-passenger-textarea {
    position: absolute;
    left: -9999px;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    opacity: 0;
}

.vrb-tr-passenger-row-invalid input:first-child,
.vrb-tr-passenger-row-invalid .vrb-tr-passenger-name {
    border-color: #dc2626;
}

@media (max-width: 560px) {
    .vrb-tr-grid,
    .vrb-tr-date-row,
    .vrb-tr-summary {
        grid-template-columns: 1fr;
    }

    .vrb-tr-card {
        padding: 18px;
        border-radius: 14px;
    }

    .vrb-tr-passenger-table {
        min-width: 0;
        border-spacing: 0;
    }

    .vrb-tr-passenger-table thead {
        display: none;
    }

    .vrb-tr-passenger-table tr {
        display: block;
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #f8fafc;
    }

    .vrb-tr-passenger-table td,
    .vrb-tr-passenger-table td:first-child,
    .vrb-tr-passenger-table td:last-child {
        display: block;
        width: auto;
        padding: 6px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .vrb-tr-passenger-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: #475569;
        font-size: 12px;
        font-weight: 800;
    }
}

@media (max-width: 900px) {
    .vrb-tr-wrap.vrb-tr-type-horizontal {
        max-width: 100%;
    }

    .vrb-tr-wrap.vrb-tr-type-horizontal .vrb-tr-grid,
    .vrb-tr-wrap.vrb-tr-type-horizontal .vrb-tr-date-row,
    .vrb-tr-wrap.vrb-tr-type-horizontal .vrb-tr-summary {
        display: grid;
        grid-template-columns: 1fr !important;
    }

    .vrb-tr-wrap.vrb-tr-type-horizontal .vrb-col,
    .vrb-tr-wrap.vrb-tr-type-horizontal .vrb-tr-submit-col,
    .vrb-tr-wrap.vrb-tr-type-horizontal .vrb-tr-button {
        width: 100%;
        max-width: 100%;
    }
}
