/* ============================================================
   Coxeur Fare Calculator — fare.css
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

:root {
    --cxr-navy: #060912;
    --cxr-blue: #121a60;
    --cxr-lime: #8cc63f;
    --cxr-lime-h: #a8d84f;
    --cxr-white: #ffffff;
    --cxr-light: #f8fafc;
    --cxr-border: #e2e8f0;
    --cxr-text: #1e293b;
    --cxr-muted: #64748b;
    --cxr-radius: 14px;
}

/* ── Wrapper ── */
.cxr-fare-wrap {
    font-family: 'Inter', sans-serif;
    max-width: 580px;
    margin: 0 auto;
}

/* Dark theme */
.cxr-fare--dark .cxr-fare__header,
.cxr-fare--dark .cxr-fare__form,
.cxr-fare--dark .cxr-fare__result {
    background: var(--cxr-navy);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .08);
}

/* Light theme */
.cxr-fare--light .cxr-fare__header,
.cxr-fare--light .cxr-fare__form {
    background: #fff;
    color: var(--cxr-text);
    border: 1px solid var(--cxr-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

/* ── Header ── */
.cxr-fare__header {
    border-radius: var(--cxr-radius) var(--cxr-radius) 0 0;
    padding: 24px 28px 20px;
    text-align: center;
}

.cxr-fare__icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.cxr-fare__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.cxr-fare__sub {
    font-size: .78rem;
    opacity: .5;
    margin: 0;
}

/* ── Form ── */
.cxr-fare__form {
    border-radius: 0 0 var(--cxr-radius) var(--cxr-radius);
    padding: 20px 28px 28px;
    border-top: 0;
}

.cxr-fare__field {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cxr-fare__dot {
    font-size: 1rem;
    flex-shrink: 0;
}

.cxr-fare__dot--green {
    color: #22c55e;
}

.cxr-fare__dot--red {
    color: #ef4444;
}

.cxr-fare__input {
    flex: 1;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}

.cxr-fare--light .cxr-fare__input {
    border-color: var(--cxr-border);
    background: var(--cxr-light);
    color: var(--cxr-text);
}

.cxr-fare__input:focus {
    border-color: var(--cxr-lime);
}

.cxr-fare__input::placeholder {
    opacity: .45;
}

.cxr-fare__select {
    cursor: pointer;
}

.cxr-fare__connector {
    padding-left: 30px;
    margin: -4px 0;
}

.cxr-fare__connector span {
    display: block;
    width: 2px;
    height: 20px;
    background: rgba(255, 255, 255, .15);
    margin: 0 0 0 4px;
}

/* Calc button */
.cxr-fare__btn-calc {
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    border: none;
    background: var(--cxr-lime);
    color: #000;
    font-weight: 800;
    font-size: .95rem;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s, transform .15s;
    margin-top: 8px;
}

.cxr-fare__btn-calc:hover {
    background: var(--cxr-lime-h);
    transform: translateY(-1px);
}

.cxr-fare__btn-calc:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ── Result ── */
.cxr-fare__result {
    margin-top: 16px;
    border-radius: var(--cxr-radius);
    padding: 24px 28px;
    animation: fadeInUp .35s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cxr-fare__result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.cxr-fare__result-item {
    text-align: center;
}

.cxr-result-label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: .45;
    margin-bottom: 4px;
}

.cxr-result-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--cxr-lime);
}

.cxr-fare__result-disclaimer {
    font-size: .72rem;
    opacity: .4;
    text-align: center;
    margin-bottom: 16px;
}

.cxr-fare__result-actions {
    display: flex;
    gap: 10px;
}

.cxr-fare__btn-book,
.cxr-fare__btn-whatsapp {
    flex: 1;
    padding: 12px;
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    font-size: .82rem;
    text-decoration: none;
    transition: transform .15s, opacity .2s;
}

.cxr-fare__btn-book {
    background: var(--cxr-lime);
    color: #000;
}

.cxr-fare__btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.cxr-fare__btn-book:hover,
.cxr-fare__btn-whatsapp:hover {
    transform: translateY(-2px);
    opacity: .9;
    text-decoration: none;
    color: inherit;
}

/* Google Maps autocomplete dropdown */
.pac-container {
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

/* ── Responsive ── */
@media (max-width: 480px) {

    .cxr-fare__form,
    .cxr-fare__header,
    .cxr-fare__result {
        padding: 18px;
    }

    .cxr-fare__result-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cxr-fare__result-actions {
        flex-direction: column;
    }
}