
:root {
    --green: #146b3a;
    --green-dark: #0d4d2a;
    --green-light: #eaf5ee;
    --orange: #f28c28;
    --ink: #18251e;
    --muted: #647168;
    --line: #e1e8e3;
    --surface: #ffffff;
    --background: #f5f8f6;
    --danger: #a52222;
    --radius: 16px;
    --shadow: 0 8px 28px rgba(18, 55, 34, 0.07);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

/* =========================================================
   DLinT'S LINK LOGO
   ========================================================= */

/* Logo displayed in the website header */
.site-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Header brand area containing logo + brand name */
.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Keep the logo and brand text looking good on smaller screens */
@media (max-width: 600px) {
    .site-logo {
        width: 48px;
        height: 48px;
    }

    .brand-area {
        gap: 9px;
    }
}


a {
    color: var(--line);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    width: min(1120px, 92%);
    margin: auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    color: var(--green);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.tagline {
    color: var(--muted);
    font-size: 0.78rem;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.site-nav a {
    color: var(--ink);
    font-size: 0.91rem;
    font-weight: 600;
}

.site-nav .nav-cta {
    background: var(--green);
    color: white;
    border-radius: 9px;
    padding: 9px 14px;
}

.page-shell {
    width: min(1000px, 92%);
    margin: 34px auto 60px;
}

.narrow-shell {
    width: min(520px, 92%);
    margin: 42px auto 64px;
}

.hero {
    padding: 42px 4%;
    background: linear-gradient(120deg, #e8f5ec, #fff8ef);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.hero h1 {
    margin: 0 0 10px;
    color: var(--green-dark);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.15;
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--muted);
}

.card,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

.card h2,
.panel h2 {
    margin-top: 0;
    line-height: 1.25;
}

.page-heading {
    margin-bottom: 24px;
}

.page-heading h1 {
    margin-bottom: 6px;
    color: var(--green-dark);
}

.page-heading p {
    margin-top: 0;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #cbd8cf;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(20, 107, 58, 0.13);
    border-color: var(--green);
}

button,
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 17px;
    border: 0;
    border-radius: 9px;
    background: var(--green);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

button:hover,
.button:hover {
    background: var(--green-dark);
    text-decoration: none;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-secondary {
    background: #edf3ef;
    color: var(--green-dark);
}

.button-orange {
    background: var(--orange);
    color: #24170a;
}

.button-full {
    width: 100%;
}

.text-small {
    color: var(--muted);
    font-size: 0.88rem;
}

.text-center {
    text-align: center;
}

.form-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    font-size: 0.9rem;
}

.message {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 9px;
    display: none;
    overflow-wrap: anywhere;
}

.message.success {
    display: block;
    background: #e8f6ed;
    color: #155b31;
}

.message.error {
    display: block;
    background: #fff0ef;
    color: var(--danger);
}

.message.info {
    display: block;
    background: #edf4fb;
    color: #214d72;
}

.account-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px;
    background: var(--green-light);
    border-radius: 12px;
    margin-bottom: 20px;
}

.data-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    background: #fff;
}

.data-card h3 {
    margin: 0 0 8px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid #eef2ef;
}

.data-row:last-child {
    border-bottom: 0;
}

.status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #edf3ef;
    color: var(--green-dark);
}

.status-paid {
    background: #e3f7e9;
    color: #146b3a;
}

.status-held {
    background: #fff3d9;
    color: #805400;
}

.status-failed,
.status-cancelled,
.status-expired {
    background: #fff0ef;
    color: #a52222;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.route-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
}

.route-card .fare {
    color: var(--green);
    font-size: 1.6rem;
    font-weight: 800;
}

.site-footer {
    background: #102d1d;
    color: #e7f0e9;
    padding: 28px 4%;
    text-align: center;
    font-size: 0.88rem;
}

.contact-email {
    color: #0b5d3b;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.site-footer a {
    color: #fff;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 12px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 0;
        gap: 10px;
    }

    .site-nav {
        gap: 12px;
    }

    .site-nav a {
        font-size: 0.84rem;
    }

    .page-shell,
    .narrow-shell {
        margin-top: 22px;
    }

    .card,
    .panel {
        padding: 19px;
    }

    .form-grid,
    .route-grid {
        grid-template-columns: 1fr;
    }

    .data-row {
        flex-direction: column;
        gap: 2px;
    }

    .hero {
        padding: 32px 5%;
    }
}

.feedback-stars {
    display: flex;
    gap: 6px;
    margin: 10px 0;
}

.feedback-star {
    border: none;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.35;
    padding: 2px 4px;
    transition: transform 0.15s ease,
                opacity 0.15s ease;
}

.feedback-star:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

.feedback-star.selected {
    opacity: 1;
}

.feedback-star:focus {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* =========================================================
   KEEP FOOTER AT THE BOTTOM OF THE PAGE
   ========================================================= */

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.site-footer {
    margin-top: auto;
    flex-shrink: 0;
}

.customer-reviews-section {
    padding: 50px 20px;
    text-align: center;
}

.customer-reviews-slider {
    position: relative;
    max-width: 750px;
    margin: 30px auto 0;
    min-height: 220px;
}

.customer-review-slide {
    display: none;
    padding: 30px;
    border-radius: 16px;
    background: var(--card-bg, #ffffff);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.customer-review-slide.active {
    display: block;
}

.customer-review-stars {
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.customer-review-slide blockquote {
    margin: 0 auto 20px;
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.customer-review-name {
    font-weight: 700;
}

.review-empty {
    padding: 30px;
}

/* =========================================================
   CUSTOMER FEEDBACK — STAR RATING
   ========================================================= */

.feedback-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    min-height: 52px;
}

.feedback-star {
    appearance: none;
    -webkit-appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    padding: 0;
    margin: 0;

    border: 1px solid #d5dce3;
    border-radius: 8px;

    background: #ffffff;
    color: #c7cdd3;

    font-family: Arial, sans-serif;
    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.feedback-star:hover,
.feedback-star:focus-visible {
    color: #f5a623;
    background: #fff8e8;
    border-color: #f5a623;
    outline: none;
    transform: translateY(-1px);
}

.feedback-star.selected {
    color: #f5a623;
    background: #fff8e8;
    border-color: #f5a623;
}

.feedback-star:active {
    transform: scale(0.96);
}

.feedback-star[aria-checked="true"] {
    color: #f5a623;
    border-color: #f5a623;
}

#feedbackRatingText {
    margin-top: 8px;
    min-height: 20px;
    font-weight: 600;
}

/* Mobile adjustment */
@media (max-width: 600px) {

    .feedback-stars {
        gap: 4px;
    }

    .feedback-star {
        width: 42px;
        height: 42px;
        font-size: 28px;
    }
}

/* =========================================================
   APPROVED CUSTOMER FEEDBACK SLIDESHOW
   ========================================================= */

.customer-feedback-home {
    margin-top: 40px;
    text-align: center;
}

.approved-feedback-slider {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    min-height: 190px;
}

.approved-feedback-card {
    display: none;
    padding: 28px 24px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    animation: feedbackFadeIn 0.5s ease;
}

.approved-feedback-card.active {
    display: block;
}

.approved-feedback-stars {
    font-size: 1.7rem;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.approved-feedback-card blockquote {
    margin: 0 auto 16px;
    max-width: 650px;
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
}

.approved-feedback-name {
    font-weight: 700;
    margin-top: 10px;
}

.feedback-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.feedback-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c8c8c8;
    cursor: pointer;
}

.feedback-slider-dot.active {
    transform: scale(1.25);
}

.feedback-empty {
    padding: 30px 20px;
    text-align: center;
}

@keyframes feedbackFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* =========================================
   FOOTER SOCIAL MEDIA
   ========================================= */

.footer-social {
    margin-top: 18px;
    text-align: center;
}

.footer-social-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-social-links a {
    text-decoration: none;
}

.footer-social-links a:hover {
    text-decoration: underline;
}

.footer-social {
    text-align: center;
}

.footer-social-title {
    margin-bottom: 10px;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

/* Social media icons */

.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.social-icon {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    border-radius: 50%;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}

.social-icon svg {
    width: 28px;
    height: 28px;

    display: block;
}

/* Facebook */
.social-facebook {
    color: #1877F2;
}

.social-facebook svg {
    fill: currentColor;
}

/* Instagram */
.social-instagram {
    color: transparent;
}

.social-instagram svg {
    width: 30px;
    height: 30px;
}

/* LinkedIn */
.social-linkedin {
    color: #0A66C2;
}

.social-linkedin svg {
    fill: currentColor;
}

/* Hover effect */
.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Keyboard accessibility */
.social-icon:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.footer-copy {
    margin-top: 16px;
}


/* Improve visibility of email addresses and contact links */
.card a[href^="mailto:"],
.card a[href^="tel:"] {
    color: #075e3b;
    opacity: 1;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    filter: none;
    text-shadow: none;
}

/* Improve readability of contact details */
.card p {
    color: #222222;
}
