/* ==========================================================================
   Wild Boar Safaris — Tailor-Made Custom Safari Form Page
   Font: Outfit | Brand: Ochre #B57833 | Forest #1E382B | Dark #0E1A14
   ========================================================================== */

/* --------------------------------------------------------------------------
   Minimal Top Bar
   -------------------------------------------------------------------------- */
.tm-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 58px;
    background: rgba(14, 26, 20, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.tm-topbar-logo img {
    display: block;
    height: 36px;
    width: auto;
}

.tm-topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.70);
    text-decoration: none;
    transition: color 0.2s;
}

.tm-topbar-back i { font-size: 0.75rem; }

.tm-topbar-back:hover { color: #B57833; }

/* Push page content below fixed topbar */
.tm-page { padding-top: 58px; }

/* --------------------------------------------------------------------------
   Page Wrapper — Full Viewport Split Layout
   -------------------------------------------------------------------------- */
.tm-page {
    display: flex;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
}

/* --------------------------------------------------------------------------
   LEFT PANEL — Cinematic Image with Overlay Info
   -------------------------------------------------------------------------- */
.tm-left {
    position: sticky;
    top: 0;
    width: 42%;
    flex-shrink: 0;
    height: 100vh;
    overflow: hidden;
    background: #0E1A14;
}

.tm-left-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/Serengeti national park (5).jpg');
    background-size: cover;
    background-position: center 30%;
    z-index: 1;
}

.tm-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(14,26,20,0.55) 0%,
        rgba(14,26,20,0.30) 45%,
        rgba(14,26,20,0.82) 100%
    );
    z-index: 2;
}

.tm-left-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem 2.75rem;
}

.tm-left-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(181,120,51,0.18);
    border: 1px solid rgba(181,120,51,0.5);
    color: #B57833;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.4rem;
    width: fit-content;
}

.tm-left-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.tm-left-title em {
    font-style: normal;
    color: #B57833;
}

.tm-left-para {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.72;
    margin: 0 0 2rem;
    max-width: 340px;
}

/* Mini feature list on left panel */
.tm-left-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.tm-left-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.80);
}

.tm-left-features li i {
    color: #B57833;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Divider */
.tm-left-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin: 0 0 1.5rem;
}

/* Contact quick-links */
.tm-left-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.tm-left-contact-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: rgba(255,255,255,0.70);
    font-size: 0.84rem;
    transition: color 0.2s;
}

.tm-left-contact-item:hover { color: #B57833; }

.tm-left-contact-item i {
    font-size: 0.82rem;
    color: #B57833;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   RIGHT PANEL — Scrollable Form Area
   -------------------------------------------------------------------------- */
.tm-right {
    flex: 1;
    min-width: 0;
    background: #FAFAF8;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.tm-right-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 4.5rem 3rem 5rem;
    width: 100%;
    flex: 1;
}

/* Breadcrumb */
.tm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 2.5rem;
}

.tm-breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.tm-breadcrumb a:hover { color: #B57833; }
.tm-breadcrumb i { font-size: 0.55rem; opacity: 0.5; }
.tm-breadcrumb span { color: #B57833; }

/* Form Header */
.tm-form-header {
    margin-bottom: 2.5rem;
}

.tm-form-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #B57833;
    display: block;
    margin-bottom: 0.7rem;
}

.tm-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0E1A14;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.tm-form-sub {
    font-size: 0.93rem;
    color: #6B7570;
    line-height: 1.65;
    margin: 0;
}

/* Progress Steps */
.tm-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid #E8E2D8;
    padding-bottom: 1.5rem;
}

.tm-progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #B0A89A;
    position: relative;
    padding-right: 1.5rem;
}

.tm-progress-step::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 1px;
    background: #D5CEBF;
}

.tm-progress-step:last-child::after { display: none; }
.tm-progress-step:last-child { padding-right: 0; }

.tm-progress-step.active { color: #0E1A14; }

.tm-progress-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #D5CEBF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    flex-shrink: 0;
    color: #B0A89A;
    background: #FAFAF8;
}

.tm-progress-step.active .tm-progress-dot {
    background: #B57833;
    border-color: #B57833;
    color: #FFFFFF;
}

.tm-progress-step.done .tm-progress-dot {
    background: #1E382B;
    border-color: #1E382B;
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Form Sections / Steps
   -------------------------------------------------------------------------- */
.tm-form-section {
    margin-bottom: 2.5rem;
}

.tm-section-heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #B57833;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.35rem;
}

.tm-section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E8E2D8;
}

/* Field Rows */
.tm-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tm-row.single { grid-template-columns: 1fr; }

.tm-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tm-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2C3630;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tm-label span {
    color: #B57833;
    margin-left: 0.15rem;
}

.tm-input,
.tm-select,
.tm-textarea {
    font-family: 'Outfit', sans-serif;
    font-size: 0.93rem;
    color: #0E1A14;
    background: #FFFFFF;
    border: 1.5px solid #DDD7CC;
    padding: 0.78rem 1rem;
    border-radius: 4px;
    width: 100%;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.tm-input:focus,
.tm-select:focus,
.tm-textarea:focus {
    border-color: #B57833;
    box-shadow: 0 0 0 3px rgba(181,120,51,0.10);
}

.tm-input::placeholder,
.tm-textarea::placeholder { color: #BCBAB4; }

.tm-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23888' d='M8 11L2 5h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 12px; padding-right: 2.5rem; cursor: pointer; }

.tm-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* Checkbox / Radio Option Group */
.tm-option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.tm-option-grid.col2 { grid-template-columns: repeat(2, 1fr); }

.tm-option-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #DDD7CC;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.84rem;
    color: #2C3630;
    background: #FFFFFF;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
    line-height: 1.3;
}

.tm-option-label:hover { border-color: #B57833; }

.tm-option-label input[type="checkbox"],
.tm-option-label input[type="radio"] {
    display: none;
}

.tm-option-label .tm-check {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1.5px solid #C8C0B4;
    background: #FAFAF8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.18s;
    font-size: 0.6rem;
    color: transparent;
}

.tm-option-label.radio .tm-check { border-radius: 50%; }

.tm-option-label input:checked ~ .tm-check,
.tm-option-label:has(input:checked) .tm-check {
    background: #B57833;
    border-color: #B57833;
    color: #FFFFFF;
}

.tm-option-label:has(input:checked) {
    border-color: #B57833;
    background: rgba(181,120,51,0.05);
}

/* Budget Tier Cards */
.tm-budget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.tm-budget-card {
    border: 1.5px solid #DDD7CC;
    padding: 1.1rem 1rem;
    cursor: pointer;
    background: #FFFFFF;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.tm-budget-card:has(input:checked) {
    border-color: #B57833;
    background: rgba(181,120,51,0.04);
}

.tm-budget-card input { position: absolute; opacity: 0; }

.tm-budget-tier {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #B57833;
    margin-bottom: 0.2rem;
}

.tm-budget-range {
    font-size: 1rem;
    font-weight: 700;
    color: #0E1A14;
    margin-bottom: 0.2rem;
}

.tm-budget-desc {
    font-size: 0.75rem;
    color: #6B7570;
}

/* Divider between form sections */
.tm-divider {
    border: none;
    border-top: 1px solid #EDE8DF;
    margin: 2rem 0;
}

/* Form Footer */
.tm-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid #E8E2D8;
    flex-wrap: wrap;
}

.tm-privacy-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #9A9490;
    line-height: 1.4;
}

.tm-privacy-note i { color: #B57833; font-size: 0.82rem; flex-shrink: 0; }

.tm-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #B57833;
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.95rem 2.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.22s;
    white-space: nowrap;
}

.tm-submit-btn:hover { background: #9A6324; }

/* --------------------------------------------------------------------------
   Responsive — Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .tm-page { flex-direction: column; }

    .tm-left {
        position: relative;
        width: 100%;
        height: 360px;
    }

    .tm-left-content { padding: 2rem 1.75rem; }
    .tm-left-title { font-size: 1.65rem; }
    .tm-left-contacts { flex-direction: row; flex-wrap: wrap; gap: 1rem; }

    .tm-right-inner { padding: 2.5rem 1.25rem 3.5rem; }
}

@media (max-width: 580px) {
    .tm-row { grid-template-columns: 1fr; }
    .tm-option-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-budget-grid { grid-template-columns: 1fr; }
    .tm-form-footer { flex-direction: column; align-items: flex-start; }
    .tm-submit-btn { width: 100%; justify-content: center; }
    .tm-progress { display: none; }
    .tm-left { height: 300px; }
}
