@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&display=swap');

body {
    overflow:hidden;
    margin: 0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card {
    width: min(92vw, 560px);
    max-width: 560px;
    background: #f8f8f8;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    padding: 12px;
}

.card-top {
    padding: 15px 20px;
    text-align: center;
}

.blue-line {
    width: 130px;
    height: 8px;
    border-radius: 999px;
    margin: 0 auto 35px;
    background: linear-gradient(90deg,#004dff,#7aa0ff,#004dff);
}

.title {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
}

.title-underline {
    width: 62%;
    max-width: 700px;
    height: 3px;
    background: #7fa3ff;
    margin: 22px auto 0;
    border-radius: 999px;
}

.title-blue {
    color: #0b4dff;
}

.title-black {
    color: #111;
}

.subtitle {
    margin-top: 35px;
    color: #616161;
    font-size: 28px;
}

.divider {
    height: 1px;
    background: #d9d9d9;
}

.content {
    padding: 20px 25px;
}

.label {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: #243140;
    margin-bottom: 30px;
}

.input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}


.search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 30px 30px 30px 85px;
    font-size: 28px;
    border: 3px solid #0b4dff;
    border-radius: 30px;
    outline: none;
}

.search-input::placeholder {
    color: #9a9a9a;
}

.helper {
    margin-top: 18px;
    color: #596270;
    font-size: 24px;
}

.search-button {
    width: 100%;
    margin-top: 45px;
    border: none;
    background: #0b4dff;
    color: white;
    font-size: 30px;
    font-weight: 700;
    padding: 28px;
    border-radius: 28px;
    cursor: pointer;
}

.search-button:hover {
    opacity: .95;
}

.footer {
    border-top: 1px solid #d9d9d9;
    padding: 35px;
    text-align: center;
    color: #606060;
    font-size: 22px;
}

.bottom-text {
    text-align: center;
    color: white;
    margin-top: 15px;
    font-size: 16px;
}

.error {
    color: red;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

@media (max-width: 768px) {

    .title {
        font-size: 42px;
    }

    .subtitle {
        font-size: 22px;
    }

    .label {
        font-size: 24px;
    }

    .search-input {
        font-size: 20px;
        padding: 22px 22px 22px 65px;
    }

    .helper,
    .footer,
    .bottom-text {
        font-size: 18px;
    }

    .search-button {
        font-size: 22px;
    }

    .content {
        padding: 30px;
    }
}

.result-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:30px;
}

.result-top > div:first-child{
    flex:1;
}

.result-top > div:nth-child(2){
    min-width:180px;
    text-align:center;
}

.result-top > a{
    display:flex;
    justify-content:flex-end;
}

.status-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;

    padding:8px 14px;

    border-radius:999px;

    background:#f0fdf4;
    color:#166534;

    border:1px solid #bbf7d0;

    font-size:12px;
    font-weight:700;
}

.status-badge::before{
    content:'';
    width:8px;
    height:8px;
    border-radius:50%;
    background:#22c55e;
}
.status-booked { background: #2563eb; }
.status-in-transit { background: #ea580c; }
.status-delivered { background: #6b7280; }
.status-cancelled { background: #dc2626; }

.load-title {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.secondary-button{
    width:85px;
    height:60px;
    font-size:10px;
    display:flex;
    align-items:center;
    justify-content:center;

    border:2px solid #0b4dff;
    border-radius:22px;

    text-decoration:none;
    color:#0b4dff;
    font-weight:700;

    transition:.2s;
}

.secondary-button:hover {
    background: #0b4dff;
    color: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 12px 0;
}

.info-box,
.metric-box,
.location-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 10px;
}

.box-label {
    font-size: 9px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.box-value {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.location-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.location-address {
    color: #4b5563;
    margin-bottom:8px;
    font-size:12px;
}

.location-time {
    color: #111827;
    font-weight: 600;
    font-size:12px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.metric-value {
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
}

.download-button {
    display: block;
    text-align: center;
    text-decoration: none;
    background: #0b4dff;
    color: white;
    padding: 10px;
    border-radius: 20px;
    font-weight: 700;
    margin-top: 40px;
    transition: 0.2s;
    font-size:13px;
}

.download-button:hover {
    background: #0039c7;
}

.expiration {
    text-align: center;
    margin-top: 25px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .result-top,
    .info-grid,
    .metrics {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .load-title {
        font-size: 30px;
    }
}

.windows-warning {
    margin-top: 40px;
    padding: 22px;
    text-align: center;

    background: #fffbea;

    border: 2px solid #facc15;

    color: #92400e;

    border-radius: 18px;

    font-weight: 500;
}

.organization-title{
    font-family:'Montserrat', sans-serif;
    font-weight:600;
    font-size:clamp(24px, 3vw, 40px);
    line-height:1.1;
    letter-spacing:-0.03em;
    text-align:center;
    color:#fff;

    text-shadow:
        0 2px 8px rgba(0,0,0,.25);

    margin-bottom:28px;
}

/* TEMPLATE 2 */

.template2-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:30px;
}

.template2-left{
    min-width:240px;
}

.template2-center{
    min-width:100px;
    text-align:center;
}

.template2-right{
    display:flex;
    justify-content:flex-end;
}

.template2-title{
    font-size:clamp(16px, 2vw, 22px);
    font-weight:700;
    color:#0b4dff;
    line-height:1.2;
    text-align:center;
}

.template2-line{
    height:2px;
    width:95%;
    background:#a8c0ff;
    margin-top:10px;
}

.template2-numbers{
    display:flex;
    gap:12px;
    margin-top:18px;
}

.template2-number-box{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:8px 10px;
    min-width:80px;
}

.template2-number-box .box-label{
    font-size:11px;
    font-weight:700;
    color:#6b7280;
    text-transform:uppercase;
    margin-bottom:4px;
}

.template2-number-box .box-value{
    font-size:18px;
    font-weight:700;
    color:#111827;
}

.template2-load{
    font-size:clamp(18px,2vw,18px);
    line-height:1.05;
    font-weight:800;
    color:#1f2937;
    margin-top:12px;
}

.template2-dates{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    margin-bottom:30px;
}

.template2-label{
    font-size:14px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#64748b;
    margin-bottom:12px;
}

.template2-date{
    font-size:18px;
    font-weight:600;
    color:#64748b;
    line-height:1.5;
}

.template2-box{
    background:white;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:12px;
    margin-bottom:12px;
}

.template2-box-inner{
    background:#eef4ff;
    border:1px solid #c7d6ff;
    border-radius:18px;
    padding:18px 26px;
    text-align:center;
}

.template2-box-title{
    color:#0b4dff;
    font-weight:700;
    font-size:18px;
    letter-spacing:.5px;
    margin-bottom:12px;
}

.template2-box-text{
    font-size:15px;
    line-height:1.55;
    color:#374151;
}

.template2-box-text strong{
    color:#0b4dff;
    font-weight:700;
}

.template2-box-text p{
    margin:0 0 8px;
}

.template2-box-text p:last-child{
    margin-bottom:0;
}

.template2-download{
    margin-top:30px;
}

.template2-download .download-button{
    margin-top:0;
}

.template2-expiration{
    text-align:center;
    margin-top:20px;
    color:#64748b;
    font-size:14px;
}

@media(max-width:768px){

    .template2-header{
        grid-template-columns:1fr;
    }

    .template2-center{
        flex-direction:column;
        align-items:flex-start;
        gap:20px;
    }

    .template2-dates{
        grid-template-columns:1fr;
    }

    .template2-load{
        font-size:34px;
    }

    .template2-number-box{
        flex:1;
    }
}

.search-card{
    max-width:650px;
}

.search-card .card-top{
    padding:35px 30px;
}

.search-card .title{
    font-size:34px;
}

.search-card .content{
    padding:30px 35px;
}

.search-card .label{
    font-size:20px;
    margin-bottom:15px;
}

.search-card .search-input{
    padding:18px 18px 18px 65px;
    font-size:18px;
}

.search-card .helper{
    font-size:14px;
}

.search-card .search-button{
    font-size:18px;
    padding:16px;
}

.search-card .footer{
    padding:20px;
    font-size:14px;
}

.search-card + .bottom-text,
.search-card ~ .bottom-text{
    font-size:12px;
}

.search-text {text-align:center;}

@media (max-width: 1366px){

    .card{
        max-width:520px;
    }

    .content{
        padding:18px 22px;
    }

    .metrics{
        gap:8px;
    }

    .metric-value{
        font-size:14px;
    }

    .box-value{
        font-size:14px;
    }
}

.total-rate-value{
    color:#22c55e;
    font-size:14px;
    font-weight:800;
    line-height:1.1;
    text-transform:uppercase;
}