/* ===========================================================
   Crane Rental Page — STAR LIGHT GEN TRANSPORT
   =========================================================== */

/* Stats strip */
.tp-crane-stats {
    margin-top: -48px;
    position: relative;
    z-index: 5;
    padding-bottom: 0;
}
.tp-crane-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #fff;
    border-radius: var(--tp-radius);
    box-shadow: 0 20px 60px rgba(20, 24, 31, .12);
    padding: 28px 32px;
    border: 1px solid #eef0f3;
}
.tp-crane-stat {
    display: flex;
    align-items: center;
    gap: 16px;
}
.tp-crane-stat .ic {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(224, 36, 27, .1);
    color: var(--tp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.tp-crane-stat .ic iconify-icon { font-size: 26px; }
.tp-crane-stat strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--tp-dark);
    line-height: 1.2;
}
.tp-crane-stat span {
    display: block;
    font-size: 13px;
    color: var(--tp-gray);
    margin-top: 2px;
}

/* Benefits */
.tp-crane-benefit {
    background: #fff;
    border-radius: var(--tp-radius);
    padding: 32px 26px;
    height: 100%;
    border: 1px solid #eef0f3;
    box-shadow: var(--tp-shadow);
    transition: var(--tp-transition);
    text-align: center;
}
.tp-crane-benefit:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(20, 24, 31, .12);
    border-color: rgba(224, 36, 27, .2);
}
.tp-crane-benefit .ic {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: rgba(224, 36, 27, .1);
    color: var(--tp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: var(--tp-transition);
}
.tp-crane-benefit:hover .ic {
    background: var(--tp-primary);
    color: #fff;
    transform: scale(1.05);
}
.tp-crane-benefit .ic iconify-icon { font-size: 30px; }
.tp-crane-benefit h5 {
    font-weight: 700;
    color: var(--tp-dark);
    margin-bottom: 10px;
    font-size: 1.05rem;
}
.tp-crane-benefit p {
    color: var(--tp-gray);
    font-size: 14px;
    margin: 0;
    line-height: 1.65;
}

/* Fleet cards — compact */
.tp-crane-fleet {
    background: #fff;
    border-radius: var(--tp-radius);
    border: 1px solid #eef0f3;
    box-shadow: var(--tp-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}
.tp-crane-fleet-head {
    padding: 16px 18px;
    border-bottom: 1px solid #eef0f3;
    background: linear-gradient(135deg, rgba(224, 36, 27, .06) 0%, rgba(224, 36, 27, .01) 100%);
}
.tp-crane-fleet-head h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tp-dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tp-crane-fleet-head h4 iconify-icon { color: var(--tp-primary); font-size: 20px; }
.tp-crane-fleet-head p { font-size: 12px; color: var(--tp-gray); }
.tp-crane-fleet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(224, 36, 27, .35) #f1f3f5;
}
.tp-crane-fleet-list::-webkit-scrollbar { width: 5px; }
.tp-crane-fleet-list::-webkit-scrollbar-thumb {
    background: rgba(224, 36, 27, .35);
    border-radius: 4px;
}
.tp-crane-fleet-card {
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--tp-transition);
    background: #fff;
    position: relative;
}
.tp-crane-fleet-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 10px 0 0 10px;
    background: transparent;
    transition: var(--tp-transition);
}
.tp-crane-fleet-card:hover {
    border-color: rgba(224, 36, 27, .3);
    box-shadow: 0 6px 18px rgba(20, 24, 31, .06);
}
.tp-crane-fleet-card.is-selected {
    border-color: var(--tp-primary);
    background: rgba(224, 36, 27, .04);
    box-shadow: 0 6px 20px rgba(224, 36, 27, .1);
}
.tp-crane-fleet-card.is-selected::before { background: var(--tp-primary); }
.tp-crane-fleet-card.is-selected .tp-crane-fleet-badge {
    background: var(--tp-primary);
    color: #fff;
    border-color: var(--tp-primary);
}
.tp-crane-fleet-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tp-crane-fleet-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(224, 36, 27, .1);
    color: var(--tp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tp-transition);
}
.tp-crane-fleet-card.is-selected .tp-crane-fleet-icon,
.tp-crane-fleet-card:hover .tp-crane-fleet-icon {
    background: var(--tp-primary);
    color: #fff;
}
.tp-crane-fleet-icon iconify-icon { font-size: 18px; }
.tp-crane-fleet-card-info {
    flex: 1;
    min-width: 0;
}
.tp-crane-fleet-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--tp-dark);
    margin: 0 0 2px;
    line-height: 1.3;
}
.tp-crane-fleet-card-info p {
    font-size: 11px;
    color: var(--tp-gray);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tp-crane-fleet-badge {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 4px 8px;
    border-radius: 50px;
    border: 1px solid #e5e7eb;
    color: var(--tp-gray);
    background: var(--tp-light);
    transition: var(--tp-transition);
}
.tp-crane-table-note {
    padding: 10px 18px;
    margin: 0;
    font-size: 11px;
    color: var(--tp-gray);
    background: var(--tp-light);
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    border-top: 1px solid #eef0f3;
}
.tp-crane-table-note i { color: var(--tp-primary); flex-shrink: 0; }

/* How it works */
.tp-crane-steps { margin-top: 8px; }
.tp-crane-steps-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tp-dark);
    margin-bottom: 20px;
}
.tp-crane-step-list { display: flex; flex-direction: column; gap: 0; }
.tp-crane-step {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-left: 2px solid #eef0f3;
    margin-left: 22px;
    padding-left: 28px;
    position: relative;
}
.tp-crane-step:last-child { border-left-color: transparent; }
.tp-crane-step .num {
    position: absolute;
    left: -23px;
    top: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--tp-primary);
    color: var(--tp-primary);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(224, 36, 27, .15);
}
.tp-crane-step h6 {
    font-weight: 700;
    color: var(--tp-dark);
    margin-bottom: 6px;
    font-size: 15px;
}
.tp-crane-step p {
    color: var(--tp-gray);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Quote form */
.tp-crane-form-wrap { position: sticky; top: 100px; }
.tp-crane-form-card {
    background: #fff;
    border-radius: var(--tp-radius);
    box-shadow: 0 24px 60px rgba(20, 24, 31, .12);
    border: 1px solid #eef0f3;
    overflow: hidden;
}
.tp-crane-form-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 28px 0;
    background: linear-gradient(135deg, var(--tp-dark) 0%, #2a3038 100%);
    color: #fff;
    padding-bottom: 24px;
    margin-bottom: 0;
}
.tp-crane-form-header .ic {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(224, 36, 27, .25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.tp-crane-form-header .ic iconify-icon { font-size: 26px; }
.tp-crane-form-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}
.tp-crane-form-header p {
    font-size: 14px;
    color: #aeb4bd;
    margin: 0;
}
.tp-crane-form-card form { padding: 24px 28px 28px; }
.tp-crane-form-section { margin-bottom: 24px; }
.tp-crane-form-section:last-of-type { margin-bottom: 20px; }
.tp-crane-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tp-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef0f3;
}
.tp-crane-form-label iconify-icon { font-size: 18px; }
.tp-crane-field { margin-bottom: 16px; }
.tp-crane-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-dark);
    margin-bottom: 8px;
}
.tp-crane-field label .req { color: var(--tp-primary); }
.tp-crane-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.tp-crane-field-full { grid-column: 1 / -1; }

/* Period grid — compact */
.tp-crane-period-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.tp-crane-period {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-align: left;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: var(--tp-transition);
    position: relative;
    background: #fff;
    min-height: 0;
}
.tp-crane-period input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tp-crane-period:hover,
.tp-crane-period:has(input:checked) {
    border-color: var(--tp-primary);
    background: rgba(224, 36, 27, .04);
    box-shadow: 0 4px 12px rgba(224, 36, 27, .1);
}
.tp-crane-period:has(input:checked) {
    border-width: 2px;
    padding: 7px 9px;
}
.tp-crane-period-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(224, 36, 27, .1);
    color: var(--tp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tp-transition);
}
.tp-crane-period:has(input:checked) .tp-crane-period-icon {
    background: var(--tp-primary);
    color: #fff;
}
.tp-crane-period-icon iconify-icon { font-size: 16px; }
.tp-crane-period-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 12px;
    color: var(--tp-dark);
    line-height: 1.25;
}

/* Date row */
.tp-crane-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Submit */
.tp-crane-submit {
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
}

/* Success alert */
.tp-crane-success {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 28px 0;
    padding: 16px 18px;
}
.tp-crane-success iconify-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}
.tp-crane-form-card > .tp-alert-danger { margin: 20px 28px 0; }
.tp-crane-empty {
    text-align: center;
    padding: 48px 28px;
    color: var(--tp-gray);
}
.tp-crane-empty iconify-icon {
    font-size: 48px;
    color: var(--tp-primary);
    opacity: .5;
    margin-bottom: 16px;
}

/* Contact bar */
.tp-crane-contact-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--tp-light);
    border-radius: 12px;
    font-size: 14px;
}
.tp-crane-contact-bar span { font-weight: 600; color: var(--tp-dark); }
.tp-crane-contact-bar a {
    color: var(--tp-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tp-crane-contact-bar a:hover { color: var(--tp-primary-dark); }

/* CTA */
.tp-crane-cta {
    padding: 80px 0;
    background: linear-gradient(120deg, var(--tp-dark) 0%, #2a3038 50%, rgba(224, 36, 27, .85) 100%);
    color: #fff;
}
.tp-crane-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.tp-crane-cta h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}
.tp-crane-cta p {
    color: #cfd4db;
    margin: 0;
    max-width: 520px;
    font-size: 15px;
}
.tp-crane-cta .tp-btn-outline {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}
.tp-crane-cta .tp-btn-outline:hover {
    background: #fff;
    color: var(--tp-dark);
}

/* Validation */
.tp-form-control.is-invalid { border-color: #dc3545; }
.tp-crane-period.is-invalid,
.tp-crane-option.is-invalid { border-color: #dc3545; }
.tp-field-error { color: #dc3545; font-size: 0.875rem; margin-top: 6px; }

/* Legacy option (fallback) */
.tp-crane-option {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--tp-transition);
}
.tp-crane-option:hover,
.tp-crane-option:has(input:checked) {
    border-color: var(--tp-primary);
    background: rgba(224, 36, 27, .04);
}
.tp-crane-option input { margin-right: 10px; }

/* Responsive */
@media (max-width: 991px) {
    .tp-crane-stats { margin-top: -32px; }
    .tp-crane-stats-grid { grid-template-columns: repeat(2, 1fr); padding: 24px; }
    .tp-crane-form-wrap { position: static; }
}
@media (max-width: 767px) {
    .tp-crane-stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .tp-crane-period-grid { grid-template-columns: 1fr; gap: 5px; }
    .tp-crane-fields-grid { grid-template-columns: 1fr; }
    .tp-crane-date-row { grid-template-columns: 1fr; }
    .tp-crane-form-header,
    .tp-crane-form-card form { padding-left: 20px; padding-right: 20px; }
    .tp-crane-fleet-list { padding: 10px; max-height: 360px; }
}
