/* Sothik Bhara hero */
body.fare-dashboard {
    background: #fff;
    color: #2e8b57;
}

body.fare-dashboard::before,
body.fare-dashboard::after {
    display: none;
}

.fare-page {
    min-height: calc(100vh - 69px);
    background: #fff;
    color: #374151;
}

.fare-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fcfbfc;
}

.fare-hero__image {
    position: absolute;
    inset: 0;
    background: #fcfbfc;
}

.fare-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center right;
    transform: scale(1.14);
    transform-origin: center right;
}

.fare-hero__content {
    position: relative;
    z-index: 1;
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 80px 40px;
}

.fare-hero__content > * {
    max-width: 430px;
}

.fare-hero__eyebrow {
    margin-bottom: 16px;
    color: #2e8b57;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.fare-hero h1 {
    margin: 0 0 16px;
    color: #0f5d4a;
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    text-align: left;
    background: none;
    -webkit-text-fill-color: unset;
    animation: none;
}

.fare-hero__subtitle {
    max-width: 390px;
    margin-bottom: 30px;
    color: #374151;
    font-size: 17px;
    line-height: 1.6;
}

.fare-hero__button {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    border: 1px solid #0f5d4a;
    border-radius: 14px;
    background: #0f5d4a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.18s ease;
}

.fare-hero__button:hover {
    background: #0d4f3f;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.14);
    color: #fff;
    transform: translateY(-1px);
}

.fare-content {
    background: transparent;
}

/* Shared calculator and history page branding. */
body.fare-tool,
body.fare-history {
    min-height: 100vh;
    background: #fff;
    color: #374151;
}

body.fare-tool::before,
body.fare-tool::after,
body.fare-history::before,
body.fare-history::after {
    display: none;
}

body.fare-tool .navbar,
body.fare-history .navbar,
body.fare-dashboard .navbar {
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.fare-tool .fare-nav-inner,
body.fare-history .fare-nav-inner,
body.fare-dashboard .fare-nav-inner {
    width: 100%;
    max-width: 1280px;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.fare-tool .navbar .brand,
body.fare-history .navbar .brand,
body.fare-dashboard .navbar .brand {
    gap: 10px;
}

body.fare-tool .navbar .brand::after,
body.fare-history .navbar .brand::after,
body.fare-dashboard .navbar .brand::after {
    display: none;
}

body.fare-tool .navbar .brand-name,
body.fare-history .navbar .brand-name,
body.fare-dashboard .navbar .brand-name {
    color: #0f5d4a;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

body.fare-tool .navbar .brand-icon,
body.fare-history .navbar .brand-icon,
body.fare-dashboard .navbar .brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

body.fare-tool .navbar .nav-links a,
body.fare-history .navbar .nav-links a,
body.fare-dashboard .navbar .nav-links a {
    color: #6b7280;
}

body.fare-tool .navbar .nav-links a:hover,
body.fare-history .navbar .nav-links a:hover,
body.fare-dashboard .navbar .nav-links a:hover {
    color: #0f5d4a;
    background: #ecfdf5;
    border-color: #d1fae5;
}

body.fare-tool .container,
body.fare-history .container {
    width: min(100% - 48px, 960px);
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 0 72px;
    background: transparent;
}

body.fare-tool .container {
    max-width: 760px;
}

body.fare-tool h1,
body.fare-history h1 {
    margin-bottom: 32px;
    color: #111827;
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.8px;
    text-align: left;
    background: none;
    -webkit-text-fill-color: unset;
    animation: none;
}

body.fare-tool form {
    max-width: 680px;
    padding: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.fare-tool form label {
    display: block;
    margin: 0 0 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

body.fare-tool form input,
body.fare-tool form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font: inherit;
    outline: none;
    transition: 0.18s ease;
}

body.fare-tool form select {
    appearance: none;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #2e8b57 50%),
        linear-gradient(135deg, #2e8b57 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    cursor: pointer;
}

body.fare-tool form input:focus,
body.fare-tool form select:focus {
    border-color: #2e8b57;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.12);
}

body.fare-tool form br {
    line-height: 0;
}

body.fare-tool form button[type='submit'],
body.fare-tool form .cancel-btn,
body.fare-tool form #getCorrectKmBtn,
body.fare-history .cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #0f5d4a;
    border-radius: 10px;
    background: #0f5d4a;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: 0.18s ease;
}

body.fare-tool form button[type='submit']:hover,
body.fare-tool form .cancel-btn:hover,
body.fare-tool form #getCorrectKmBtn:hover,
body.fare-history .cancel-btn:hover {
    background: #0d4f3f;
    border-color: #0d4f3f;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

body.fare-tool form .cancel-btn {
    margin-left: 8px;
    background: #fff;
    color: #0f5d4a !important;
}

body.fare-tool form .cancel-btn:hover {
    background: #ecfdf5;
}

body.fare-tool .result-box {
    max-width: 680px;
    margin-top: 24px;
    padding: 24px 28px;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 16px;
    color: #374151;
}

body.fare-tool .result-box h2 {
    margin-bottom: 14px;
    color: #0f5d4a;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
}

body.fare-tool .result-box p {
    margin: 8px 0;
}

body.fare-history .container > div:first-child {
    gap: 20px;
}

body.fare-history .container > div:first-child h1 {
    margin-bottom: 0;
}

body.fare-history table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    color: #374151;
}

body.fare-history table th,
body.fare-history table td {
    padding: 15px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}

body.fare-history table th {
    background: #ecfdf5;
    color: #0f5d4a;
    font-weight: 800;
}

body.fare-history table tr:last-child td {
    border-bottom: 0;
}

body.fare-history table tr:hover td {
    background: #f0fdf4;
}

body.fare-history table td a {
    color: #0f5d4a;
    font-weight: 700;
    text-decoration: none;
}

body.fare-history table td a:hover {
    color: #0d4f3f;
    text-decoration: underline;
}

body.fare-history .container > p {
    padding: 24px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    color: #6b7280;
}

body.fare-tool .site-footer,
body.fare-history .site-footer,
body.fare-dashboard .site-footer {
    margin-top: auto;
    padding: 24px 40px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    text-align: center;
    font-size: 13px;
}

body.fare-tool .site-footer p,
body.fare-history .site-footer p,
body.fare-dashboard .site-footer p {
    margin: 3px 0;
    color: #6b7280;
}

/* Match the main dashboard's clean service-card treatment. */
.fare-dashboard .fare-option-box .option-card {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 220px;
    padding: 32px 28px 28px;
    text-align: left;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    color: #374151 !important;
    transition: 0.18s ease;
}

.fare-dashboard .fare-option-box .option-card::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #0f5d4a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.fare-dashboard .fare-option-box .option-card:hover {
    border-color: #d1d5db;
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    color: #374151 !important;
    transform: translateY(-3px);
}

.fare-dashboard .fare-option-box .option-card:hover::before {
    transform: scaleX(1);
}

.fare-dashboard .fare-option-box .option-card .card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    font-size: 26px;
    transition: 0.18s ease;
}

.fare-dashboard .fare-option-box .option-card:hover .card-icon {
    background: #0f5d4a;
    border-color: #0f5d4a;
    transform: none;
}

.fare-dashboard .fare-option-box .option-card h2 {
    margin-bottom: 8px;
    color: #111827;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.fare-dashboard .fare-option-box .option-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .fare-hero {
        min-height: 520px;
        align-items: flex-start;
    }

    .fare-hero__content {
        padding: 56px 24px;
    }

    .fare-hero h1 {
        font-size: 40px;
    }

    .fare-hero__subtitle {
        max-width: 300px;
        font-size: 15px;
    }

    .fare-dashboard .fare-option-box .option-card {
        min-height: 190px;
        padding: 24px 20px 22px;
    }

    body.fare-tool .container,
    body.fare-history .container {
        width: min(100% - 32px, 960px);
        padding-top: 40px;
    }

    body.fare-tool .fare-nav-inner,
    body.fare-history .fare-nav-inner,
    body.fare-dashboard .fare-nav-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    body.fare-tool h1,
    body.fare-history h1 {
        font-size: 30px;
    }

    body.fare-tool form {
        padding: 24px 20px;
    }

    body.fare-history .container > div:first-child {
        align-items: flex-start !important;
        flex-direction: column;
    }

    body.fare-history table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
