/* ═══════════════════════════════════════════════════════════════════════
   TRAINCU - TRIPS & TRANSPORT REQUESTS (طلبات النقل والرحلات)
   Brand Colors: Primary #75418F, Deep #1A0A2E, Mid #8A5EA0, Tint #D8CAE0, Wash #F7F4F8
═══════════════════════════════════════════════════════════════════════ */

:root {
    --tr-primary: #75418F;         /* Primary brand purple */
    --tr-primary-dark: #1A0A2E;    /* Deep ink purple */
    --tr-primary-deep: #662D91;    /* Deep purple */
    --tr-primary-hover: #65387B;   /* Brand hover */
    --tr-primary-active: #542F67;  /* Brand active */
    --tr-primary-light: #F7F4F8;   /* Brand wash */
    --tr-primary-border: #D8CAE0;  /* Brand tint border */
    --tr-primary-soft: #B397C1;    /* Brand soft */
    --tr-primary-mid: #8A5EA0;     /* Brand mid */
    --tr-dark: #1A0A2E;
    --tr-gray-bg: #F7F4F8;
    --tr-border: #E4E4E7;
    --tr-text-dark: #1A1A1A;
    --tr-text-muted: #6B6B6B;
    --tr-radius: 12px;
    --tr-radius-lg: 16px;
    --tr-shadow: 0 4px 20px rgba(117, 65, 143, 0.08);
    --tr-shadow-hover: 0 10px 30px rgba(117, 65, 143, 0.16);
}

/* ── Hero Section (Unified Brand Purple & Tech Grid pattern) ── */
.tr-hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(26, 10, 46, 0.97) 0%, rgba(102, 45, 145, 0.88) 55%, rgba(117, 65, 143, 0.94) 100%),
        #1A0A2E;
    background-size: cover;
    background-position: center;
    padding: 85px 0 70px;
    color: #fff;
    overflow: hidden;
}

/* Ambient radial glow */
.tr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 65% 55% at 75% 50%, rgba(216, 202, 224, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Subtle grid texture exactly matching homepage */
.tr-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 1;
}

.tr-hero-bg-shapes .tr-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}
.tr-hero-bg-shapes .tr-shape-1 {
    width: 380px;
    height: 380px;
    background: #75418F;
    top: -100px;
    left: -80px;
}
.tr-hero-bg-shapes .tr-shape-2 {
    width: 340px;
    height: 340px;
    background: #8A5EA0;
    bottom: -80px;
    right: -60px;
}

.tr-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(216, 202, 224, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(216, 202, 224, 0.35);
    color: #ffffff;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}
.tr-hero-badge i {
    color: #D8CAE0;
}
.tr-hero-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: #fff;
    line-height: 1.32;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.tr-hero-title .hl {
    color: #ffffff;
    display: inline-block;
    font-size: 0.88em;
    font-weight: 700;
    margin-top: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.tr-hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 820px;
    margin: 0 auto 30px;
    line-height: 1.75;
}
.tr-hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.tr-hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.tr-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
.tr-stat-item i {
    color: #D8CAE0;
    font-size: 16px;
}

/* ── Generic Buttons ── */
.tr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}
.tr-btn-lg {
    padding: 12px 28px;
    font-size: 16px;
}
.tr-btn-md {
    padding: 10px 22px;
    font-size: 14px;
}
.tr-btn-sm {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 8px;
}
.tr-btn-primary {
    background: #75418F;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(117, 65, 143, 0.35);
}
.tr-btn-primary:hover {
    background: #65387B;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(117, 65, 143, 0.45);
}
.tr-btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}
.tr-btn-outline:hover {
    background: #fff;
    color: #1A0A2E !important;
    transform: translateY(-2px);
}
.tr-btn-outline-white {
    background: transparent;
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.tr-btn-outline-white:hover {
    background: #fff;
    color: #1A0A2E !important;
}
.tr-btn-white {
    background: #ffffff;
    color: #1A0A2E !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.tr-btn-white:hover {
    background: #F7F4F8;
    color: #75418F !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.tr-btn-light {
    background: #F7F4F8;
    color: #1A0A2E !important;
    border: 1px solid var(--tr-primary-border);
}
.tr-btn-light:hover {
    background: #D8CAE0;
    color: #1A0A2E !important;
}
.tr-btn-outline-dashed {
    border: 2px dashed #75418F;
    background: #F7F4F8;
    color: #75418F;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
}
.tr-btn-outline-dashed:hover {
    background: #D8CAE0;
    color: #65387B;
}

/* ── Section Header ── */
.tr-section-head {
    margin-bottom: 40px;
}
.tr-section-tag {
    display: inline-block;
    background: #F7F4F8;
    color: #75418F;
    border: 1px solid #D8CAE0;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.tr-tag-white {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}
.tr-section-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: #1A0A2E;
    margin-bottom: 8px;
}
.tr-section-sub {
    font-size: 15px;
    color: #6B6B6B;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Success Alert Card ── */
.tr-success-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #F7F4F8;
    border: 1.5px solid #75418F;
    border-radius: var(--tr-radius);
    padding: 20px 24px;
    box-shadow: 0 4px 15px rgba(117, 65, 143, 0.12);
    position: relative;
    animation: fadeInDown 0.4s ease;
}
.tr-success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #75418F;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.tr-success-content {
    flex: 1;
}
.tr-success-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1A0A2E;
    margin: 0 0 6px;
}
.tr-success-content p {
    font-size: 14px;
    color: #444444;
    margin: 0 0 12px;
}
.tr-order-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px dashed #75418F;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #1A0A2E;
}
.tr-order-code-badge strong {
    font-size: 16px;
    color: #75418F;
    letter-spacing: 0.5px;
}

/* ── 2. How It Works Section ── */
.tr-how-section {
    padding: 60px 0;
    background: #fff;
}
.tr-how-card {
    background: #fff;
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius-lg);
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    position: relative;
    box-shadow: var(--tr-shadow);
    transition: all 0.3s ease;
}
.tr-how-card:hover {
    transform: translateY(-6px);
    border-color: #75418F;
    box-shadow: var(--tr-shadow-hover);
}
.tr-how-num {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 20px;
    font-weight: 800;
    color: #D8CAE0;
}
[dir="ltr"] .tr-how-num {
    right: auto;
    left: 18px;
}
.tr-how-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #F7F4F8;
    color: #75418F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.tr-how-card:hover .tr-how-icon {
    background: #75418F;
    color: #fff;
    transform: scale(1.08);
}
.tr-how-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A0A2E;
    margin-bottom: 8px;
}
.tr-how-text {
    font-size: 13px;
    color: #6B6B6B;
    line-height: 1.6;
    margin: 0;
}

/* ── 3. Transport Request Form ── */
.tr-form-section {
    padding: 60px 0 70px;
    background: #F7F4F8;
}
.tr-main-form {
    background: transparent;
}

/* Wizard Steps Navigation Bar */
.tr-steps-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 16px 24px;
    border-radius: var(--tr-radius-lg);
    border: 1px solid var(--tr-border);
    box-shadow: var(--tr-shadow);
    margin-bottom: 28px;
}
.tr-step-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    opacity: 0.55;
    transition: all 0.25s ease;
}
.tr-step-tab.active {
    opacity: 1;
}
.tr-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E4E4E7;
    color: #444444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s ease;
}
.tr-step-tab.active .tr-step-circle {
    background: #75418F;
    color: #fff;
}
.tr-step-label {
    font-size: 14px;
    font-weight: 700;
    color: #1A0A2E;
}
.tr-step-line {
    flex: 1;
    height: 2px;
    background: #E4E4E7;
    margin: 0 14px;
}

/* Panels */
.tr-step-panel {
    display: none;
    animation: fadeIn 0.35s ease;
}
.tr-step-panel.active {
    display: block;
}

/* Form Card */
.tr-form-card {
    background: #fff;
    border: 1px solid #D8CAE0;
    border-radius: var(--tr-radius-lg);
    box-shadow: var(--tr-shadow);
    overflow: hidden;
}
.tr-form-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F7F4F8;
    padding: 18px 24px;
    border-bottom: 1px solid #D8CAE0;
}
.tr-form-card-head i {
    font-size: 24px;
    color: #75418F;
    flex-shrink: 0;
}
.tr-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #1A0A2E;
    margin: 0 0 2px;
}
.tr-card-desc {
    font-size: 13px;
    color: #6B6B6B;
    margin: 0;
}
.tr-form-card-body {
    padding: 24px;
}

/* Form inputs & controls */
.tr-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A0A2E;
    margin-bottom: 9px;
}
.tr-label-sm {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1A0A2E;
    margin-bottom: 7px;
}
.tr-input, .tr-select {
    width: 100%;
    border: 1.5px solid #D8CAE0;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    color: #1A0A2E;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    line-height: 1.5;
}
.tr-input:focus, .tr-select:focus {
    border-color: #75418F;
    box-shadow: 0 0 0 3px rgba(117, 65, 143, 0.15);
}
.tr-input.is-invalid, .tr-select.is-invalid {
    border-color: #DC2626 !important;
}
.tr-input-unit {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.tr-input-unit .tr-input {
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-inline-start: 22px !important;
    padding-inline-end: 95px !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
/* Explicit Direction Fallbacks */
[dir="rtl"] .tr-input-unit .tr-input,
body[dir="rtl"] .tr-input-unit .tr-input,
html[lang="ar"] .tr-input-unit .tr-input {
    padding-right: 22px !important;
    padding-left: 95px !important;
}
[dir="ltr"] .tr-input-unit .tr-input,
body[dir="ltr"] .tr-input-unit .tr-input,
html[lang="en"] .tr-input-unit .tr-input {
    padding-left: 22px !important;
    padding-right: 95px !important;
}
.tr-input-unit input[type=number]::-webkit-inner-spin-button, 
.tr-input-unit input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
.tr-input-unit input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.tr-input-unit .unit-tag {
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12.5px;
    font-weight: 700;
    color: #75418F;
    pointer-events: none;
    background: #F7F4F8;
    padding: 5px 13px;
    border-radius: 7px;
    border: 1px solid #D8CAE0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
[dir="rtl"] .tr-input-unit .unit-tag,
body[dir="rtl"] .tr-input-unit .unit-tag,
html[lang="ar"] .tr-input-unit .unit-tag {
    left: 12px;
    right: auto;
}
[dir="ltr"] .tr-input-unit .unit-tag,
body[dir="ltr"] .tr-input-unit .unit-tag,
html[lang="en"] .tr-input-unit .unit-tag {
    right: 12px;
    left: auto;
}

/* Radio grids */
.tr-radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}
.tr-radio-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}
.tr-radio-tile input, .tr-radio-tile-sm input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tr-tile-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1.5px solid #D8CAE0;
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #444444;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.tr-tile-box-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 8px;
    border: 1.5px solid #D8CAE0;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #444444;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.tr-tile-box i {
    font-size: 20px;
    color: #75418F;
}
.tr-radio-tile input:checked + .tr-tile-box,
.tr-radio-tile-sm input:checked + .tr-tile-box-sm {
    border-color: #75418F;
    background: #F7F4F8;
    color: #75418F;
    font-weight: 700;
}
.tr-radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1A0A2E;
    font-weight: 500;
    cursor: pointer;
}
.tr-radio-inline input[type="radio"] {
    accent-color: #75418F;
    width: 17px;
    height: 17px;
}

/* Location Boxes */
.tr-loc-box {
    background: #F7F4F8;
    border: 1.5px solid #D8CAE0;
    border-radius: var(--tr-radius);
    padding: 16px;
}
.tr-loc-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1A0A2E;
    padding-bottom: 8px;
    border-bottom: 1px dashed #D8CAE0;
}
.tr-loc-badge .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.from-dot { background: #8A5EA0; }
.to-dot { background: #75418F; }

/* Conditional / Helper Boxes */
.tr-conditional-box {
    background: #F7F4F8;
    border: 1px solid #D8CAE0;
    border-radius: var(--tr-radius);
    padding: 16px;
}
.tr-cond-title {
    font-size: 14px;
    font-weight: 700;
    color: #75418F;
    margin: 0 0 10px;
}
.tr-helper-box {
    background: #F7F4F8;
    border: 1px solid #D8CAE0;
    border-radius: var(--tr-radius);
    padding: 14px 18px;
    margin-top: 10px;
}

/* File Dropzone */
.tr-file-dropzone {
    position: relative;
    border: 2px dashed #D8CAE0;
    border-radius: var(--tr-radius);
    padding: 24px;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.tr-file-dropzone:hover {
    border-color: #75418F;
    background: #F7F4F8;
}
.tr-file-dropzone i {
    font-size: 32px;
    color: #75418F;
    display: block;
    margin-bottom: 6px;
}
.tr-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Addons Checkbox Grid */
.tr-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.tr-addon-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tr-addon-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #D8CAE0;
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #444444;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tr-addon-box i {
    font-size: 18px;
    color: #75418F;
}
.tr-addon-card input:checked + .tr-addon-box {
    border-color: #75418F;
    background: #F7F4F8;
    color: #75418F;
    font-weight: 700;
}

/* Live Review Card */
.tr-review-card {
    background: #F7F4F8;
    border: 1.5px solid #D8CAE0;
    border-radius: var(--tr-radius-lg);
    box-shadow: 0 4px 18px rgba(117, 65, 143, 0.08);
    overflow: hidden;
}
.tr-review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #D8CAE0;
}
.tr-review-head i {
    font-size: 24px;
    color: #75418F;
}
.tr-review-title {
    font-size: 16px;
    font-weight: 800;
    color: #1A0A2E;
    margin: 0;
}
.tr-review-body {
    padding: 20px 24px;
}
.tr-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.tr-rev-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #D8CAE0;
}
.tr-rev-item .lbl {
    font-size: 12px;
    color: #6B6B6B;
    font-weight: 600;
}
.tr-rev-item .val {
    font-size: 14px;
    color: #1A0A2E;
    font-weight: 700;
}
.tr-rev-item .text-brand {
    color: #75418F !important;
}

/* Wizard Step Action Buttons */
.tr-step-actions {
    display: flex;
    align-items: center;
    margin-top: 24px;
}
.tr-submit-pulse {
    animation: pulseGlow 2.5s infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 14px rgba(117, 65, 143, 0.35); }
    50% { box-shadow: 0 6px 22px rgba(117, 65, 143, 0.55); }
}

/* ── 4. Available Transport Opportunities ── */
.tr-opportunities-section {
    padding: 65px 0 75px;
    background: #fff;
}
.tr-filter-card {
    background: #F7F4F8;
    border: 1px solid #D8CAE0;
    border-radius: var(--tr-radius-lg);
    padding: 20px 24px;
    box-shadow: var(--tr-shadow);
    margin-bottom: 30px;
}
.tr-select-sm {
    width: 100%;
    border: 1.5px solid #D8CAE0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #1A0A2E;
    background: #fff;
    outline: none;
}
.tr-select-sm:focus {
    border-color: #75418F;
}
.tr-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.tr-input-icon i {
    position: absolute;
    inset-inline-start: 10px;
    font-size: 14px;
    color: #75418F;
    pointer-events: none;
    z-index: 2;
}
.tr-input-icon .tr-select-sm {
    padding-inline-start: 30px;
}

.tr-fast-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tr-fast-label {
    font-size: 12px;
    font-weight: 700;
    color: #6B6B6B;
}
.tr-pill {
    padding: 4px 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #D8CAE0;
    font-size: 12px;
    font-weight: 600;
    color: #444444;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tr-pill:hover, .tr-pill.active {
    background: #75418F;
    color: #fff !important;
    border-color: #75418F;
}

/* Opportunity Cards */
.tr-opp-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF8FC 100%);
    border: 1.5px solid #D8CAE0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(117, 65, 143, 0.07);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
}
.tr-opp-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: 3px;
    background: linear-gradient(90deg, #75418F, #8A5EA0, #D8CAE0);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.tr-opp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(117, 65, 143, 0.16);
    border-color: #75418F;
}
.tr-opp-card:hover::before {
    opacity: 1;
}

/* Strict Card Hiding */
.opp-item-card.d-none,
.opp-item-card.tr-hidden,
.opp-item-card[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
}

@keyframes cardFoundPulse {
    0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(117, 65, 143, 0.8); }
    50% { transform: scale(1.03); box-shadow: 0 0 0 14px rgba(117, 65, 143, 0.22); }
    100% { transform: scale(1); box-shadow: 0 14px 34px rgba(117, 65, 143, 0.22); }
}
.tr-card-highlight {
    animation: cardFoundPulse 0.9s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-color: #75418F !important;
    box-shadow: 0 0 0 2px #75418F, 0 12px 30px rgba(117, 65, 143, 0.25) !important;
}

/* Card Header */
.tr-opp-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #EFE8F3;
}
.tr-opp-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F7F4F8 0%, #EBDFF0 100%);
    color: #75418F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 1px solid #D8CAE0;
    box-shadow: 0 2px 8px rgba(117, 65, 143, 0.08);
}
.tr-opp-title-box {
    flex: 1;
    min-width: 0;
}
.tr-card-type-tag {
    background: #F7F4F8;
    color: #75418F;
    border: 1px solid #D8CAE0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}
.tr-card-id-tag {
    color: #8A5EA0;
    font-size: 11px;
    font-weight: 600;
}
.tr-opp-title {
    font-size: 16px;
    font-weight: 800;
    color: #1A0A2E;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

/* Status Badges */
.tr-badge-live {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.tr-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2E7D32;
    animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.6); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 5px rgba(46, 125, 50, 0); }
    100% { transform: scale(0.9); opacity: 0.8; }
}
.tr-badge-urgent {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FECACA;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* Route in Card */
.tr-opp-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F7F4F8;
    border: 1.5px solid #EBDFF0;
    border-radius: 12px;
    padding: 12px 18px;
    margin: 16px 0;
    position: relative;
}
.tr-route-step {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tr-route-step .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.from-dot { background: #8A5EA0; box-shadow: 0 0 0 3px rgba(138, 94, 160, 0.2); }
.to-dot { background: #75418F; box-shadow: 0 0 0 3px rgba(117, 65, 143, 0.25); }
.tr-route-step .text {
    display: flex;
    flex-direction: column;
}
.tr-route-step small {
    font-size: 11px;
    color: #6B6B6B;
    font-weight: 600;
}
.tr-route-step strong {
    font-size: 14.5px;
    color: #1A0A2E;
    font-weight: 800;
}
.tr-route-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 1;
    max-width: 80px;
    margin: 0 10px;
}
.tr-route-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #D8CAE0, #D8CAE0 4px, transparent 4px, transparent 8px);
}
.tr-route-arrow-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #75418F;
    color: #75418F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(117, 65, 143, 0.15);
}

/* Specs Rich Grid */
.tr-opp-grid-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.tr-spec-tile {
    background: #fff;
    border: 1px solid #EBDFF0;
    border-radius: 10px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.2s, background 0.2s;
}
.tr-spec-tile:hover {
    border-color: #D8CAE0;
    background: #FAF7FB;
}
.tr-spec-tile-wide {
    grid-column: 1 / -1;
}
.tr-spec-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F7F4F8;
    color: #75418F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.tr-spec-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.tr-spec-info .lbl {
    font-size: 11px;
    color: #6B6B6B;
    font-weight: 600;
}
.tr-spec-info .val {
    font-size: 13.5px;
    color: #1A0A2E;
    font-weight: 700;
}

/* Action Buttons in Card */
.tr-btn-opp-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: #75418F;
    background: #F7F4F8;
    border: 1.5px solid #D8CAE0;
    border-radius: 9px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.tr-btn-opp-details:hover {
    background: #EFE7F3;
    border-color: #75418F;
    color: #1A0A2E;
}
.tr-btn-opp-bid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #75418F 0%, #662D91 100%);
    border: 1.5px solid transparent;
    border-radius: 9px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(117, 65, 143, 0.25);
    cursor: pointer;
}
.tr-btn-opp-bid:hover {
    background: linear-gradient(135deg, #65387B 0%, #542578 100%);
    box-shadow: 0 6px 18px rgba(117, 65, 143, 0.38);
    transform: translateY(-1px);
    color: #fff;
}

/* Foot */
.tr-opp-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

/* ── 5. Projects Section ── */
.tr-projects-section {
    padding: 60px 0 70px;
    background: #F7F4F8;
}
.tr-projects-banner {
    background: linear-gradient(135deg, #1A0A2E 0%, #662D91 60%, #75418F 100%);
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    box-shadow: 0 10px 35px rgba(117, 65, 143, 0.25);
}
.tr-projects-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.tr-projects-lead {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}
.tr-projects-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 20px;
}
.tr-project-examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.tr-proj-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(5px);
    transition: background 0.2s ease, transform 0.2s ease;
}
.tr-proj-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}
.tr-proj-card i {
    font-size: 18px;
    color: #ffffff;
    flex-shrink: 0;
}

/* ── 6. Join as Provider Section ── */
.tr-provider-section {
    padding: 30px 0 70px;
    background: #F7F4F8;
}
.tr-provider-card {
    background: linear-gradient(135deg, #75418F 0%, #1A0A2E 100%);
    border-radius: 20px;
    padding: 36px 40px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(117, 65, 143, 0.25);
}
.tr-provider-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
}
.tr-provider-tag {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 14px;
    border-radius: 20px;
}
.tr-provider-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.tr-provider-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
}

/* ── Modals ── */
.tr-modal-content {
    border-radius: var(--tr-radius-lg);
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.tr-modal-content .modal-header {
    background: #F7F4F8;
    border-bottom: 1px solid #D8CAE0;
    padding: 16px 20px;
}
.tr-modal-content .modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #1A0A2E;
}
.tr-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.tr-dt-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #F7F4F8;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid #D8CAE0;
}
.tr-dt-item span {
    color: #6B6B6B;
    font-weight: 500;
}
.tr-dt-item strong {
    color: #1A0A2E;
    font-weight: 700;
}

/* ── Responsive adjustments ── */
@media (max-width: 991.98px) {
    .tr-steps-nav {
        overflow-x: auto;
        padding: 12px 16px;
    }
    .tr-step-tab {
        flex-shrink: 0;
    }
    .tr-projects-banner, .tr-provider-card {
        padding: 28px 20px;
    }
    .tr-review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .tr-hero {
        padding: 45px 0 40px;
    }
    .tr-hero-title {
        font-size: 26px;
    }
    .tr-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .tr-hero-actions .tr-btn {
        width: 100%;
    }
    .tr-step-line {
        display: none;
    }
    .tr-project-examples-grid {
        grid-template-columns: 1fr;
    }
    .tr-addons-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tr-form-card-head {
        padding: 14px 16px;
    }
    .tr-form-card-body {
        padding: 16px 14px;
    }
    .tr-loc-box {
        padding: 12px;
    }
    .tr-filter-card {
        padding: 16px 14px;
    }

    /* Opportunity Cards Responsive */
    .tr-opp-card {
        padding: 16px 14px;
        border-radius: 14px;
    }
    .tr-opp-head {
        gap: 10px;
        padding-bottom: 12px;
        flex-wrap: wrap;
    }
    .tr-opp-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }
    .tr-opp-title {
        font-size: 14.5px;
        white-space: normal;
        word-break: break-word;
        line-height: 1.35;
    }
    .tr-card-type-tag {
        font-size: 10.5px;
        padding: 2px 6px;
    }
    .tr-card-id-tag {
        font-size: 10.5px;
    }
    .tr-badge-live, .tr-badge-urgent {
        font-size: 10.5px;
        padding: 3px 9px;
    }

    /* Route Box in Card */
    .tr-opp-route {
        padding: 10px 12px;
        margin: 12px 0;
        gap: 4px;
    }
    .tr-route-step {
        gap: 6px;
        min-width: 0;
    }
    .tr-route-step .dot {
        width: 10px;
        height: 10px;
    }
    .tr-route-step small {
        font-size: 10px;
    }
    .tr-route-step strong {
        font-size: 12.5px;
        white-space: normal;
        word-break: break-word;
    }
    .tr-route-connector {
        max-width: 38px;
        margin: 0 4px;
    }
    .tr-route-arrow-badge {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    /* Specs Rich Grid */
    .tr-opp-grid-specs {
        gap: 7px;
        margin-bottom: 12px;
    }
    .tr-spec-tile {
        padding: 7px 9px;
        gap: 7px;
        border-radius: 8px;
    }
    .tr-spec-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 7px;
    }
    .tr-spec-info .lbl {
        font-size: 10px;
    }
    .tr-spec-info .val {
        font-size: 12px;
        word-break: break-word;
    }

    /* Action Buttons in Card */
    .tr-btn-opp-details, .tr-btn-opp-bid {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 8px;
    }

    .tr-review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tr-opp-card {
        padding: 14px 12px;
    }
    .tr-opp-head {
        gap: 8px;
    }
    .tr-opp-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .tr-opp-title {
        font-size: 13.5px;
    }
    .tr-opp-grid-specs {
        grid-template-columns: 1fr;
    }
    .tr-spec-tile-wide {
        grid-column: 1;
    }
    .tr-addons-grid {
        grid-template-columns: 1fr;
    }
    .tr-radio-grid-5 {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .tr-tile-box-sm {
        font-size: 12px;
        padding: 7px 4px;
    }
}
