/* Inline <style> block ported verbatim from welcome.blade.php <head>
   (learn-more modal + FedEx rate cards). Loaded on public routes only. */

.learn-more-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.learn-more-modal.is-open {
    display: flex;
}

.learn-more-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 24, 42, 0.68);
    backdrop-filter: blur(6px);
    touch-action: none;
}

.learn-more-modal__dialog {
    position: relative;
    width: min(940px, 100%);
    max-height: min(86vh, 820px);
    overflow: hidden;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    display: grid;
    grid-template-columns: minmax(280px, 40%) 1fr;
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.learn-more-modal.is-open .learn-more-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.learn-more-modal__media {
    min-height: 100%;
    background: #eef4f8;
}

.learn-more-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.learn-more-modal__content {
    position: relative;
    overflow-y: auto;
    padding: 34px 36px 32px;
    overscroll-behavior: contain;
}

.learn-more-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #0b6fb3;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.learn-more-modal__eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #0b6fb3;
}

.learn-more-modal__title {
    margin: 0 42px 16px 0;
    color: #111827;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 800;
}

.learn-more-modal__text {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.78;
}

.learn-more-modal__text p {
    margin: 0 0 14px;
}

.learn-more-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.learn-more-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.learn-more-modal__close:hover,
.learn-more-modal__close:focus {
    background: #f3f7fb;
    transform: rotate(90deg);
    outline: none;
}

html.learn-more-modal-open,
body.learn-more-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .learn-more-modal {
        padding: 14px;
    }

    .learn-more-modal__dialog {
        grid-template-columns: 1fr;
        max-height: 90vh;
    }

    .learn-more-modal__media {
        min-height: 220px;
        max-height: 260px;
    }

    .learn-more-modal__content {
        padding: 26px 22px 24px;
    }

    .learn-more-modal__title {
        margin-right: 44px;
        font-size: 25px;
    }
}

/* --- FedEx Rates Section --- */
.quote-rates-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.rates-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.route-badge-line {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.rate-card-item {
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.rate-card-item:hover {
    border-color: #0d6efd;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}

.rate-carrier-logo {
    width: 80px;
    height: auto;
}

.rate-service-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.rate-delivery-date {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 3px;
}

.rate-price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c3e50;
}

.rate-currency {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    margin-left: 3px;
}

.rate-book-btn {
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.rate-book-btn:hover {
    background-color: #0b5ed7;
    color: white;
}
