/* =====================================================
   TransferExpress ? Public Styles
   ===================================================== */

:root {
    --tp-primary:     #f59e0b;
    --tp-primary-dk:  #d97706;
    --tp-dark:        #1e293b;
    --tp-gray:        #64748b;
    --tp-light:       #f8fafc;
    --tp-border:      #e2e8f0;
    --tp-radius:      12px;
    --tp-radius-sm:   8px;
    --tp-shadow:      0 4px 24px rgba(0,0,0,.10);
    --tp-shadow-lg:   0 8px 40px rgba(0,0,0,.15);
    --tp-green:       #22c55e;
    --tp-red:         #ef4444;
    --tp-blue:        #3b82f6;
    --tp-transition:  all .2s ease;
}

/* ??? Search Form ??????????????????????????????????? */

.tp-search-wrap { width:100%; }

.tp-search-hero-text { text-align:center; margin-bottom:28px; }
.tp-search-title  { font-size:clamp(1.6rem,4vw,2.8rem); font-weight:800; color:#fff; margin:0 0 8px; line-height:1.2; }
.tp-search-subtitle { font-size:1.05rem; color:rgba(255,255,255,.8); margin:0; }

.tp-theme-light .tp-search-title  { color:var(--tp-dark); }
.tp-theme-light .tp-search-subtitle { color:var(--tp-gray); }

.tp-search-card {
    background:#fff;
    border-radius:var(--tp-radius);
    box-shadow:var(--tp-shadow-lg);
    padding:28px 28px 24px;
    max-width:960px;
    margin:0 auto;
}

/* Trip toggle */
.tp-trip-toggle { display:flex; gap:8px; margin-bottom:20px; }
.tp-trip-btn {
    display:flex; align-items:center; gap:6px;
    padding:8px 18px; border-radius:40px; border:2px solid var(--tp-border);
    background:transparent; cursor:pointer; font-size:.875rem; font-weight:600;
    color:var(--tp-gray); transition:var(--tp-transition);
}
.tp-trip-btn--active,
.tp-trip-active { border-color:var(--tp-primary) !important; background:var(--tp-primary) !important; color:#fff !important; }
.tp-trip-btn:hover:not(.tp-trip-btn--active):not(.tp-trip-active) { border-color:var(--tp-primary); color:var(--tp-primary); }

/* Search fields grid */
.tp-search-fields {
    display:grid;
    grid-template-columns:1fr auto 1fr 1fr 1fr;
    gap:12px;
    align-items:end;
}

@media(max-width:900px) {
    .tp-search-fields { grid-template-columns:1fr 1fr; }
    .tp-swap-btn { display:none; }
}
@media(max-width:560px) {
    .tp-search-fields { grid-template-columns:1fr; }
    .tp-search-card { padding:20px 16px; }
}

.tp-field-from,
.tp-field-to { position:relative; }

.tp-field-label {
    display:flex; align-items:center; gap:6px;
    font-size:.75rem; font-weight:700; text-transform:uppercase;
    letter-spacing:.05em; color:var(--tp-gray); margin-bottom:6px;
}
.tp-field-icon { display:flex; align-items:center; color:var(--tp-primary); }
.tp-icon-from svg { stroke:var(--tp-green); }
.tp-icon-to   svg { stroke:var(--tp-red); }

.tp-search-input {
    width:100%; padding:12px 14px; border:2px solid var(--tp-border);
    border-radius:var(--tp-radius-sm); font-size:.95rem; color:var(--tp-dark);
    background:#fff; transition:var(--tp-transition); box-sizing:border-box;
    height:48px;
}
.tp-search-input:focus { outline:none; border-color:var(--tp-primary); box-shadow:0 0 0 3px rgba(245,158,11,.15); }
input[type="datetime-local"].tp-search-input { cursor:pointer; }

/* Swap button */
.tp-swap-btn {
    width:40px; height:40px; border-radius:50%; border:2px solid var(--tp-border);
    background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;
    color:var(--tp-gray); transition:var(--tp-transition); flex-shrink:0; margin-bottom:4px;
    align-self:center;
}
.tp-swap-btn:hover { border-color:var(--tp-primary); color:var(--tp-primary); transform:rotate(180deg); }

/* Passenger counter */
.tp-passenger-counter { display:flex; align-items:center; gap:8px; height:48px; }
.tp-counter-btn {
    width:32px; height:32px; border-radius:50%; border:2px solid var(--tp-border);
    background:#fff; font-size:1.2rem; line-height:1; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    color:var(--tp-dark); transition:var(--tp-transition);
}
.tp-counter-btn:hover { border-color:var(--tp-primary); color:var(--tp-primary); }
.tp-counter-value { font-size:1.2rem; font-weight:700; color:var(--tp-dark); min-width:20px; text-align:center; }
.tp-counter-label { font-size:.8rem; color:var(--tp-gray); }

/* Search button */
.tp-search-action { margin-top:20px; }
.tp-search-submit {
    width:100%; padding:16px 32px; background:var(--tp-primary); color:#fff;
    border:none; border-radius:var(--tp-radius-sm); font-size:1.05rem; font-weight:700;
    cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px;
    transition:var(--tp-transition);
}
.tp-search-submit:hover { background:var(--tp-primary-dk); transform:translateY(-1px); box-shadow:0 6px 20px rgba(245,158,11,.35); }

.tp-search-error { color:var(--tp-red); font-size:.875rem; margin-top:10px; text-align:center; }


/* ??? Booking Wizard ???????????????????????????????? */

.tp-wizard-wrap {
    max-width:780px; margin:0 auto;
    font-family:inherit;
}

/* Progress */
.tp-wizard-progress { margin-bottom:36px; }
.tp-progress-steps { display:flex; align-items:center; justify-content:center; gap:0; margin-bottom:10px; }
.tp-progress-step { display:flex; flex-direction:column; align-items:center; gap:4px; }
.tp-progress-step span { font-size:.72rem; font-weight:600; color:var(--tp-gray); text-transform:uppercase; letter-spacing:.04em; }
.tp-step-dot {
    width:40px; height:40px; border-radius:50%; border:2px solid var(--tp-border);
    background:#fff; display:flex; align-items:center; justify-content:center;
    color:var(--tp-gray); transition:var(--tp-transition);
}
.tp-progress-step.tp-step-active .tp-step-dot { border-color:var(--tp-primary); background:var(--tp-primary); color:#fff; }
.tp-progress-step.tp-step-done   .tp-step-dot { border-color:var(--tp-green);   background:var(--tp-green);   color:#fff; }
.tp-progress-line { flex:1; height:2px; background:var(--tp-border); max-width:60px; }
.tp-progress-bar-track { height:4px; background:var(--tp-border); border-radius:99px; margin-top:8px; }
.tp-progress-bar-fill { height:100%; background:var(--tp-primary); border-radius:99px; transition:width .4s ease; width:0%; }

/* Steps */
.tp-wizard-step { display:none; animation:tp-fadein .3s ease; }
.tp-wizard-step.tp-step-visible { display:block; }
@keyframes tp-fadein { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }

.tp-step-header { margin-bottom:24px; }
.tp-step-header h3 { font-size:1.4rem; font-weight:800; color:var(--tp-dark); margin:0 0 4px; }
.tp-step-header p  { color:var(--tp-gray); margin:0; font-size:.95rem; }

/* Field groups */
.tp-field-group { margin-bottom:16px; }
.tp-field-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:560px){ .tp-field-row { grid-template-columns:1fr; } }

.tp-label { display:block; font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--tp-gray); margin-bottom:6px; }
.tp-required { color:var(--tp-red); }
.tp-field-hint { font-size:.8rem; color:var(--tp-gray); margin:4px 0 0; }

.tp-input, .tp-select, .tp-textarea {
    width:100%; padding:12px 14px; border:2px solid var(--tp-border);
    border-radius:var(--tp-radius-sm); font-size:.95rem; color:var(--tp-dark);
    background:#fff; transition:var(--tp-transition); box-sizing:border-box;
}
.tp-input:focus, .tp-select:focus, .tp-textarea:focus {
    outline:none; border-color:var(--tp-primary);
    box-shadow:0 0 0 3px rgba(245,158,11,.15);
}

.tp-divider { text-align:center; color:var(--tp-gray); font-size:.85rem; margin:16px 0; position:relative; }
.tp-divider::before, .tp-divider::after { content:''; position:absolute; top:50%; width:42%; height:1px; background:var(--tp-border); }
.tp-divider::before { left:0; } .tp-divider::after { right:0; }
.tp-divider span { background:#fff; padding:0 12px; }

/* Pre-fill notice */
.tp-prefill-notice {
    display:flex; align-items:center; gap:8px; padding:12px 16px;
    background:#f0fdf4; border:1px solid #bbf7d0; border-radius:var(--tp-radius-sm);
    color:#166534; font-size:.875rem; font-weight:600; margin-bottom:16px;
}

/* Dot indicators */
.tp-dot { display:inline-block; width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.tp-dot-green { background:var(--tp-green); }
.tp-dot-red   { background:var(--tp-red); }

/* Airport fields */
#tp-airport-fields {
    background:var(--tp-light); border-radius:var(--tp-radius-sm);
    padding:16px; margin-bottom:16px; border:1px solid var(--tp-border);
}

/* Map */
.tp-map-container { margin-top:16px; border-radius:var(--tp-radius-sm); overflow:hidden; }
.tp-map-info {
    background:var(--tp-light); padding:12px 16px;
    font-size:.875rem; color:var(--tp-dark); display:flex; gap:20px;
}

/* Vehicle grid */
.tp-vehicle-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; margin-bottom:24px; }

.tp-vehicle-card {
    border:2px solid var(--tp-border); border-radius:var(--tp-radius);
    overflow:hidden; cursor:pointer; transition:var(--tp-transition);
    position:relative;
}
.tp-vehicle-card:hover { border-color:var(--tp-primary); box-shadow:var(--tp-shadow); transform:translateY(-2px); }
.tp-vehicle-card.tp-selected { border-color:var(--tp-primary); box-shadow:0 0 0 3px rgba(245,158,11,.2); }

.tp-vehicle-img { width:100%; height:140px; object-fit:cover; }
.tp-vehicle-img-placeholder { width:100%; height:140px; background:var(--tp-light); display:flex; align-items:center; justify-content:center; color:var(--tp-border); }

.tp-vehicle-info { padding:14px; }
.tp-vehicle-name { font-size:1rem; font-weight:700; color:var(--tp-dark); margin:0 0 4px; }
.tp-vehicle-type { font-size:.75rem; background:var(--tp-light); color:var(--tp-gray); padding:2px 8px; border-radius:99px; }
.tp-vehicle-meta { margin:10px 0; display:flex; align-items:center; gap:12px; }
.tp-vehicle-cap  { display:flex; align-items:center; gap:4px; font-size:.8rem; color:var(--tp-gray); }
.tp-vehicle-features { list-style:none; margin:8px 0; padding:0; }
.tp-vehicle-features li { display:flex; align-items:center; gap:6px; font-size:.8rem; color:var(--tp-gray); padding:2px 0; }
.tp-vehicle-features li svg { color:var(--tp-green); flex-shrink:0; }

.tp-vehicle-price { margin-top:12px; display:flex; align-items:baseline; gap:6px; border-top:1px solid var(--tp-border); padding-top:10px; }
.tp-price-label { font-size:.75rem; color:var(--tp-gray); }
.tp-price-amount { font-size:1.15rem; font-weight:800; color:var(--tp-primary); }

.tp-vehicle-select-overlay {
    position:absolute; inset:0; background:rgba(245,158,11,.12);
    display:flex; align-items:center; justify-content:center;
    opacity:0; transition:var(--tp-transition);
}
.tp-vehicle-select-overlay svg { background:var(--tp-primary); color:#fff; border-radius:50%; padding:6px; width:40px; height:40px; }
.tp-vehicle-card.tp-selected .tp-vehicle-select-overlay { opacity:1; }

/* Summary */
.tp-summary-card { background:var(--tp-light); border-radius:var(--tp-radius); border:1px solid var(--tp-border); overflow:hidden; margin-bottom:20px; }
.tp-summary-section { padding:16px 20px; border-bottom:1px solid var(--tp-border); }
.tp-summary-section h4 { font-size:.75rem; text-transform:uppercase; letter-spacing:.06em; color:var(--tp-gray); margin:0 0 12px; }
.tp-summary-row { display:flex; justify-content:space-between; align-items:center; padding:5px 0; font-size:.9rem; }
.tp-summary-row span { color:var(--tp-gray); }
.tp-summary-row strong { color:var(--tp-dark); text-align:right; max-width:60%; }
.tp-summary-total { padding:16px 20px; background:#fff; }
.tp-total-row { padding:8px 0; }
.tp-final-price { font-size:1.3rem !important; color:var(--tp-primary) !important; }

/* Round trip */
.tp-roundtrip-summary { display:flex; align-items:center; gap:16px; background:var(--tp-light); border-radius:var(--tp-radius-sm); padding:16px 20px; margin-bottom:20px; border:1px solid var(--tp-border); }
.tp-rt-route { flex:1; }
.tp-rt-label { display:block; font-size:.75rem; color:var(--tp-gray); text-transform:uppercase; letter-spacing:.05em; margin-bottom:4px; }
.tp-roundtrip-total { display:flex; justify-content:space-between; align-items:center; background:var(--tp-light); border-radius:var(--tp-radius-sm); padding:14px 20px; border:1px solid var(--tp-border); margin-top:16px; font-size:1rem; }
.tp-roundtrip-total strong { font-size:1.2rem; color:var(--tp-primary); }

/* Terms */
.tp-terms-check { margin-bottom:20px; font-size:.875rem; color:var(--tp-gray); }
.tp-terms-check a { color:var(--tp-primary); }

/* Errors */
.tp-error-msg { background:#fef2f2; border:1px solid #fecaca; border-radius:var(--tp-radius-sm); color:var(--tp-red); padding:12px 16px; font-size:.875rem; margin-bottom:16px; }

/* Nav buttons */
.tp-step-nav { display:flex; justify-content:space-between; align-items:center; margin-top:28px; padding-top:20px; border-top:1px solid var(--tp-border); }

.tp-btn {
    padding:13px 28px; border-radius:var(--tp-radius-sm); border:none;
    font-size:.95rem; font-weight:700; cursor:pointer; transition:var(--tp-transition);
    display:inline-flex; align-items:center; gap:8px; text-decoration:none;
}
.tp-btn-next, .tp-btn-submit { background:var(--tp-primary); color:#fff; }
.tp-btn-next:hover, .tp-btn-submit:hover { background:var(--tp-primary-dk); transform:translateY(-1px); box-shadow:0 6px 20px rgba(245,158,11,.3); }
.tp-btn-back { background:var(--tp-light); color:var(--tp-dark); border:2px solid var(--tp-border); }
.tp-btn-back:hover { border-color:var(--tp-primary); color:var(--tp-primary); }
.tp-btn-outline { background:transparent; color:var(--tp-primary); border:2px solid var(--tp-primary); }

.tp-spinner { animation:tp-spin 1s linear infinite; }
@keyframes tp-spin { to{transform:rotate(360deg)} }

/* Confirmation */
.tp-confirmation-wrap { max-width:560px; margin:40px auto; padding:0 16px; }
.tp-confirmation-card { background:#fff; border-radius:var(--tp-radius); box-shadow:var(--tp-shadow-lg); padding:40px 36px; text-align:center; }
.tp-confirm-icon { width:80px; height:80px; border-radius:50%; background:#f0fdf4; display:flex; align-items:center; justify-content:center; margin:0 auto 20px; color:var(--tp-green); }
.tp-confirmation-card h2 { font-size:1.8rem; font-weight:800; color:var(--tp-dark); margin:0 0 8px; }
.tp-confirm-sub { color:var(--tp-gray); margin:0 0 28px; }
.tp-confirm-ref { background:var(--tp-light); border-radius:var(--tp-radius-sm); padding:14px 20px; display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.tp-confirm-ref span { color:var(--tp-gray); font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; }
.tp-confirm-ref strong { font-size:1.2rem; color:var(--tp-dark); font-family:monospace; }
.tp-confirm-details { text-align:left; margin-bottom:28px; }
.tp-confirm-row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--tp-border); font-size:.9rem; }
.tp-confirm-row span { color:var(--tp-gray); }
.tp-confirm-row strong { color:var(--tp-dark); text-align:right; max-width:60%; }
.tp-confirm-total { border-bottom:none; margin-top:8px; }
.tp-confirm-total strong { font-size:1.1rem; color:var(--tp-primary); }
.tp-confirm-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.tp-confirm-error .tp-confirm-icon { background:#fef2f2; color:var(--tp-red); }

/* Google Autocomplete dropdown */
.pac-container { z-index:99999 !important; border-radius:var(--tp-radius-sm) !important; box-shadow:var(--tp-shadow) !important; }

/* =====================================================
   TransferExpress ? Routes Showcase
   ===================================================== */

.te-routes-showcase { width:100%; }
.te-routes-title { font-size:1.6rem; font-weight:800; text-align:center; margin-bottom:28px; color:var(--tp-dark); }

.te-routes-grid {
    display:grid;
    gap:20px;
}
.te-routes-cols-2 { grid-template-columns:repeat(2,1fr); }
.te-routes-cols-3 { grid-template-columns:repeat(3,1fr); }
.te-routes-cols-4 { grid-template-columns:repeat(4,1fr); }

@media(max-width:960px) {
    .te-routes-cols-3,
    .te-routes-cols-4 { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:560px) {
    .te-routes-cols-2,
    .te-routes-cols-3,
    .te-routes-cols-4 { grid-template-columns:1fr; }
}

/* Card */
.te-route-card {
    background:#fff;
    border:1px solid var(--tp-border);
    border-radius:var(--tp-radius);
    box-shadow:var(--tp-shadow);
    overflow:hidden;
    display:flex;
    flex-direction:column;
    transition:var(--tp-transition);
}
.te-route-card:hover {
    transform:translateY(-4px);
    box-shadow:var(--tp-shadow-lg);
    border-color:var(--tp-primary);
}

/* Card header */
.te-route-card-header {
    background:linear-gradient(135deg,#1e293b,#334155);
    padding:16px 20px 14px;
    position:relative;
}
.te-route-name {
    color:#fff;
    font-size:1rem;
    font-weight:700;
    margin:0;
    line-height:1.3;
}
.te-route-badge {
    display:inline-block;
    font-size:.68rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.06em;
    padding:2px 8px;
    border-radius:99px;
    margin-bottom:6px;
}
.te-badge-airport { background:var(--tp-primary); color:#fff; }

/* Journey */
.te-route-journey {
    padding:16px 20px 0;
    display:flex;
    flex-direction:column;
    gap:6px;
}
.te-route-point {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:.9rem;
    color:var(--tp-dark);
    font-weight:500;
}
.te-route-dot {
    width:10px;
    height:10px;
    border-radius:50%;
    flex-shrink:0;
}
.te-dot-green { background:var(--tp-green); }
.te-dot-red   { background:var(--tp-red); }
.te-route-point-label { flex:1; }

.te-route-arrow {
    display:flex;
    align-items:center;
    gap:6px;
    padding-left:4px;
    color:#cbd5e1;
}
.te-route-line {
    width:2px;
    height:16px;
    background:linear-gradient(to bottom,var(--tp-green),var(--tp-red));
    margin-left:3px;
}

/* Distance */
.te-route-distance {
    display:flex;
    align-items:center;
    gap:5px;
    font-size:.8rem;
    color:var(--tp-gray);
    padding:8px 20px 0;
}
.te-route-distance svg { color:var(--tp-primary); }

/* Prices list */
.te-route-prices {
    padding:12px 20px 0;
    display:flex;
    flex-direction:column;
    gap:5px;
    flex:1;
}
.te-route-price-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:.875rem;
    padding:5px 0;
    border-bottom:1px solid var(--tp-border);
}
.te-route-price-row:last-child { border-bottom:none; }
.te-price-vehicle-name { color:var(--tp-gray); }
.te-price-amount { font-weight:700; color:var(--tp-dark); }

.te-route-from-price {
    padding:12px 20px 0;
    font-size:.9rem;
    color:var(--tp-gray);
    flex:1;
}
.te-route-from-price strong { color:var(--tp-primary); font-size:1.1rem; margin-left:4px; }

/* CTA button */
.te-route-book-btn {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin:16px 20px 20px;
    padding:12px 20px;
    background:var(--tp-primary);
    color:#fff;
    border-radius:var(--tp-radius-sm);
    text-decoration:none;
    font-weight:700;
    font-size:.9rem;
    transition:var(--tp-transition);
}
.te-route-book-btn:hover {
    background:var(--tp-primary-dk);
    color:#fff;
    box-shadow:0 4px 16px rgba(245,158,11,.35);
}

/* ── Flatpickr customisation ─────────────────────────────────────────────── */
.flatpickr-calendar {
    font-family: inherit;
}

/* The time section has a fixed height + overflow:hidden in flatpickr's own CSS.
   Override so our injected label and the spinners are both fully visible. */
.flatpickr-calendar.hasTime .flatpickr-time {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 10px 0 8px !important;
}

/* Divider between calendar grid and time section */
.flatpickr-calendar.hasTime .flatpickr-time {
    border-top: 2px solid #e5e7eb;
    margin-top: 6px;
}


/* Alt input styling – smaller font so date+time fit without clipping */
.tp-search-input.flatpickr-input,
input.flatpickr-alt-input.tp-search-input,
.tp-input.flatpickr-input,
input.flatpickr-alt-input.tp-input {
    cursor: pointer;
}

/* The visible alt input needs a tighter font to show full date + time */
input.flatpickr-alt-input.tp-search-input,
input.flatpickr-alt-input.tp-input {
    font-size: 0.8rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 10px;
    padding-right: 10px;
}
/* ─────────────────────────────────────────────────────────────────────────── */


/* ================================================================
   Phone Country Picker
   ================================================================ */

/* Outer wrapper — position:relative makes it the anchor for the
   absolute-positioned dropdown. No overflow clipping here. */
.tp-phone-outer {
    position: relative;
}

/* Input row — same border/radius as .tp-input */
.tp-phone-wrap {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    background: #fff;
    transition: var(--tp-transition);
}
.tp-phone-wrap:focus-within {
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.tp-phone-wrap.tp-phone-error { border-color: var(--tp-red); }

/* Flag + dial button */
.tp-phone-flag-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: var(--tp-light);
    border: none;
    border-right: 2px solid var(--tp-border);
    border-radius: calc(var(--tp-radius-sm) - 2px) 0 0 calc(var(--tp-radius-sm) - 2px);
    cursor: pointer;
    flex-shrink: 0;
    height: 44px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--tp-dark);
    white-space: nowrap;
    transition: var(--tp-transition);
}
.tp-phone-flag-btn:hover { background: #f1f5f9; }

/* flag-icons rendered size */
.tp-phone-flag-btn .fi {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
}

.tp-phone-dial    { font-size: .82rem; color: var(--tp-gray); font-weight: 600; }
.tp-phone-chevron { color: var(--tp-gray); transition: transform .2s; flex-shrink: 0; }
.tp-phone-wrap.tp-phone-open .tp-phone-chevron { transform: rotate(180deg); }

/* Digit input */
.tp-phone-digits-input {
    flex: 1;
    padding: 0 14px;
    border: none;
    outline: none;
    font-size: .95rem;
    color: var(--tp-dark);
    background: transparent;
    border-radius: 0 calc(var(--tp-radius-sm) - 2px) calc(var(--tp-radius-sm) - 2px) 0;
    min-width: 0;
    font-family: inherit;
    letter-spacing: .02em;
}
.tp-phone-digits-input::placeholder { color: #c0ccd8; }

/* Dropdown panel — anchored to .tp-phone-outer */
.tp-phone-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    min-width: 260px;
    max-width: 340px;
    background: #fff;
    border: 2px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    box-shadow: var(--tp-shadow-lg);
    z-index: 99999;
    overflow: hidden;
}
/* Flip upward on mobile when there is not enough space below */
.tp-phone-dropdown.tp-phone-dropdown-up {
    top: auto;
    bottom: calc(100% + 5px);
}
.tp-phone-dropdown.tp-phone-dropdown-open { display: block; }

/* Search row */
.tp-phone-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--tp-border);
    background: var(--tp-light);
}
.tp-phone-search-wrap svg { flex-shrink: 0; color: var(--tp-gray); }
.tp-phone-search {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: .875rem;
    color: var(--tp-dark);
    font-family: inherit;
}
.tp-phone-search::placeholder { color: #c0ccd8; }

/* Scrollable list */
.tp-phone-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.tp-phone-list::-webkit-scrollbar { width: 4px; }
.tp-phone-list::-webkit-scrollbar-thumb { background: var(--tp-border); border-radius: 2px; }

/* Country row */
.tp-phone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: .875rem;
    color: var(--tp-dark);
    border-left: 3px solid transparent;
    transition: background .1s;
    list-style: none;
}
.tp-phone-item:hover { background: var(--tp-light); }
.tp-phone-item.tp-phone-selected {
    background: #fff7ed;
    border-left-color: var(--tp-primary);
    font-weight: 600;
}
.tp-phone-item .fi {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
}
.tp-phone-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-phone-item-dial { font-size: .78rem; color: var(--tp-gray); font-weight: 600; flex-shrink: 0; }

/* No results */
.tp-phone-no-results {
    padding: 14px;
    text-align: center;
    color: var(--tp-gray);
    font-size: .875rem;
    list-style: none;
}

/* Hint states */
#tp-phone-hint.tp-hint-valid  { color: var(--tp-green); }
#tp-phone-hint.tp-hint-typing { color: var(--tp-gray);  }
#tp-phone-hint.tp-hint-error  { color: var(--tp-red);   }
