/* CeyGo Vehicle Booking Form
   Palette: deep ocean teal + warm gold accent (Sri Lankan coastal/travel feel)
   Signature: vehicle cards styled like boarding-pass ticket stubs (dashed
   perforation + notch), echoing the QR pass cards used elsewhere in CeyGo's brand. */

.ceygo-bf {
    --ceygo-ink: #0d2b2b;
    --ceygo-teal: #0f4c4c;
    --ceygo-teal-deep: #159E4A;
    --ceygo-gold: #cf9b3f;
    --ceygo-gold-soft: #f2dfb0;
    --ceygo-paper: #fbfaf7;
    --ceygo-line: #e3ded2;
    --ceygo-error: #b3441e;

    max-width: 880px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ceygo-ink);
    background: var(--ceygo-paper);
    border: 1px solid var(--ceygo-line);
    border-radius: 14px;
    padding: 32px;
}

@media (max-width: 600px) {
    .ceygo-bf { padding: 20px 16px; border-radius: 10px; }
}

.ceygo-bf * { box-sizing: border-box; }

.ceygo-bf h2 {
    font-size: 1.5rem;
    margin: 0 0 4px;
    color: var(--ceygo-teal-deep);
    letter-spacing: -0.01em;
}

.ceygo-bf .ceygo-subtitle {
    color: #5a6b6b;
    margin: 0 0 28px;
    font-size: 0.95rem;
}

.ceygo-bf .ceygo-section-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ceygo-gold);
    font-weight: 700;
    margin: 28px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ceygo-bf .ceygo-section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ceygo-line);
}

.ceygo-bf .ceygo-section-label:first-of-type { margin-top: 0; }

/* ---- Vehicle cards (ticket-stub style) ---- */

.ceygo-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}

.ceygo-vehicle-card {
    position: relative;
    cursor: pointer;
}

.ceygo-vehicle-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ceygo-vehicle-card .ceygo-card-inner {
    border: 1.5px solid var(--ceygo-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ceygo-vehicle-card:hover .ceygo-card-inner {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 76, 76, 0.1);
}

.ceygo-vehicle-card input[type="radio"]:checked + .ceygo-card-inner {
    border-color: var(--ceygo-gold);
    box-shadow: 0 0 0 3px var(--ceygo-gold-soft);
}

.ceygo-vehicle-card input[type="radio"]:focus-visible + .ceygo-card-inner {
    outline: 2px solid var(--ceygo-teal);
    outline-offset: 2px;
}

.ceygo-card-image {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, var(--ceygo-teal) 0%, var(--ceygo-teal-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
}

.ceygo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ceygo-card-image svg { width: 42px; height: 42px; }

/* Ticket-stub perforation between image and details */
.ceygo-card-perforation {
    position: relative;
    height: 0;
    border-top: 2px dashed var(--ceygo-line);
    margin: 0 10px;
}
.ceygo-card-perforation::before,
.ceygo-card-perforation::after {
    content: "";
    position: absolute;
    top: -7px;
    width: 14px;
    height: 14px;
    background: var(--ceygo-paper);
    border-radius: 50%;
}
.ceygo-card-perforation::before { left: -17px; }
.ceygo-card-perforation::after { right: -17px; }

.ceygo-card-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ceygo-card-title {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--ceygo-teal-deep);
}

.ceygo-card-capacity {
    font-size: 0.82rem;
    color: #6b7a7a;
}

.ceygo-card-price {
    margin-top: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ceygo-gold);
}

.ceygo-card-price span {
    font-weight: 400;
    color: #6b7a7a;
    font-size: 0.78rem;
}

/* ---- Form fields ---- */

.ceygo-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .ceygo-field-row { grid-template-columns: 1fr; gap: 0; }
}

.ceygo-field {
    margin-bottom: 16px;
}

.ceygo-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ceygo-teal-deep);
}

.ceygo-field input[type="text"],
.ceygo-field input[type="email"],
.ceygo-field input[type="tel"],
.ceygo-field input[type="number"],
.ceygo-field input[type="date"],
.ceygo-field input[type="time"],
.ceygo-field select,
.ceygo-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--ceygo-line);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--ceygo-ink);
    background: #fff;
    transition: border-color 0.15s ease;
}

.ceygo-field input:focus,
.ceygo-field select:focus,
.ceygo-field textarea:focus {
    outline: none;
    border-color: var(--ceygo-teal);
}

.ceygo-field textarea { resize: vertical; min-height: 80px; }

.ceygo-radio-inline { display: flex; gap: 20px; padding-top: 6px; }
.ceygo-radio-inline label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ceygo-ink);
}
.ceygo-radio-inline input { margin: 0; }

.ceygo-hidden { display: none !important; }

.ceygo-submit-btn {
    background: var(--ceygo-teal-deep);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s ease;
}

.ceygo-submit-btn:hover { background: #F4B400; }

.ceygo-error-text {
    color: var(--ceygo-error);
    font-size: 0.82rem;
    margin-top: 4px;
}

.ceygo-notice {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}
.ceygo-notice.success { background: #e5f2ea; color: #235c3b; border: 1px solid #bfe0cc; }
.ceygo-notice.error { background: #fbeae4; color: var(--ceygo-error); border: 1px solid #f0c7b6; }
