/*
 * Trooworths Shipping Rates & Policies Page Styles
 * File: trooworths-shipping-rates.css
 */

/* Hero Section */
.shipping-hero 
{
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.shipping-hero::before 
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern-overlay.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.shipping-hero h1 
{
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.shipping-hero .lead 
{
    opacity: 0.9;
}

/* Shipping Section */
.shipping-section 
{
    padding: 60px 0;
}

/* Shipping Card */
.shipping-card 
{
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 35px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #ffc107;
    transition: all 0.3s ease;
}

.shipping-card:hover 
{
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.shipping-heading 
{
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.shipping-card p 
{
    color: #555555;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.shipping-card p:last-child 
{
    margin-bottom: 0;
}

.shipping-card a 
{
    color: #0f3460;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.shipping-card a:hover 
{
    color: #ffc107;
    text-decoration: underline;
}

.shipping-card strong 
{
    color: #1a1a2e;
}

/* Policy Link Section */
.policy-link-section 
{
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.policy-link-card 
{
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.policy-link-card:hover 
{
    border-color: #ffc107;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.policy-link-card .icon-wrapper 
{
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9900 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.policy-link-card .icon-wrapper i 
{
    font-size: 2rem;
    color: #1a1a2e;
}

.policy-link-card h3 
{
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.policy-link-card p 
{
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
}

.btn-policy-link 
{
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-policy-link:hover 
{
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 26, 46, 0.3);
}

/* Shipping Rates Table Section */
.rates-section 
{
    padding: 70px 0;
    background: #ffffff;
}

.rates-section-header 
{
    text-align: center;
    margin-bottom: 50px;
}

.rates-section-header h2 
{
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.rates-section-header p 
{
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Shipping Rate Cards */
.rate-card 
{
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rate-card::before 
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffc107 0%, #ff9900 100%);
}

.rate-card:hover 
{
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #ffc107;
}

.rate-card .location-icon 
{
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.rate-card .location-icon i 
{
    font-size: 1.5rem;
    color: #0f3460;
}

.rate-card .location-name 
{
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.rate-card .location-region 
{
    margin-bottom: 12px;
}

.rate-card .location-region .badge 
{
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    background-color: #6c757d !important;
}

.rate-card .location-description 
{
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.rate-card .price-tag 
{
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 700;
    font-size: 1.2rem;
}

.rate-card .price-tag .currency 
{
    font-size: 0.9rem;
    margin-right: 3px;
    opacity: 0.9;
}

.rate-card .delivery-time 
{
    margin-top: 15px;
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 500;
}

.rate-card .delivery-time i 
{
    margin-right: 5px;
}

/* Featured Rate Card */
.rate-card.featured 
{
    border: 2px solid #ffc107;
    background: linear-gradient(135deg, #fffdf7 0%, #ffffff 100%);
}

.rate-card.featured::after 
{
    content: 'POPULAR';
    position: absolute;
    top: 15px;
    right: -30px;
    background: #ffc107;
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 35px;
    transform: rotate(45deg);
}

/* Rates Grid */
.rates-grid 
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* No Rates Message */
.no-rates-message 
{
    text-align: center;
    padding: 60px 40px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed #dee2e6;
}

.no-rates-message i 
{
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 20px;
}

.no-rates-message h4 
{
    color: #495057;
    margin-bottom: 10px;
}

.no-rates-message p 
{
    color: #6c757d;
    margin-bottom: 0;
}

/* Important Notice Section */
.notice-section 
{
    background: #fff8e1;
    padding: 40px 0;
    border-top: 3px solid #ffc107;
    border-bottom: 3px solid #ffc107;
}

.notice-card 
{
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.notice-card .notice-icon 
{
    width: 50px;
    height: 50px;
    background: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-card .notice-icon i 
{
    font-size: 1.3rem;
    color: #1a1a2e;
}

.notice-card .notice-content h5 
{
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.notice-card .notice-content p 
{
    color: #555;
    margin-bottom: 0;
    line-height: 1.7;
}

/* CTA Section */
.cta-section 
{
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 
{
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-section .lead 
{
    opacity: 0.9;
}

.cta-section .btn-warning 
{
    background-color: #ffc107;
    border-color: #ffc107;
    color: #1a1a2e;
    font-weight: 600;
    padding: 12px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-section .btn-warning:hover 
{
    background-color: #ffcd39;
    border-color: #ffcd39;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4);
}

/* Last Updated Banner */
.bg-light.border-bottom 
{
    background-color: #f8f9fa !important;
}

.bg-light.border-bottom .text-muted 
{
    font-size: 0.95rem;
}

.bg-light.border-bottom i 
{
    color: #ffc107;
}

/* Free Shipping Badge */
.free-shipping-badge 
{
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 700;
    font-size: 1rem;
}

.free-shipping-badge i 
{
    margin-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) 
{
    .shipping-hero 
    {
        padding: 80px 0 60px;
    }
    
    .shipping-hero h1 
    {
        font-size: 2.5rem;
    }
    
    .shipping-section 
    {
        padding: 40px 0;
    }
    
    .shipping-card 
    {
        padding: 25px;
    }
    
    .shipping-heading 
    {
        font-size: 1.3rem;
    }
    
    .rates-section 
    {
        padding: 50px 0;
    }
    
    .rates-section-header h2 
    {
        font-size: 1.8rem;
    }
    
    .rates-grid 
    {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767.98px) 
{
    .shipping-hero 
    {
        padding: 60px 0 40px;
    }
    
    .shipping-hero h1 
    {
        font-size: 2rem;
    }
    
    .shipping-hero .lead 
    {
        font-size: 1.1rem;
    }
    
    .shipping-section 
    {
        padding: 30px 0;
    }
    
    .shipping-card 
    {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .shipping-heading 
    {
        font-size: 1.2rem;
    }
    
    .shipping-card p 
    {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .policy-link-card 
    {
        padding: 30px 20px;
    }
    
    .rates-section 
    {
        padding: 40px 0;
    }
    
    .rates-section-header h2 
    {
        font-size: 1.5rem;
    }
    
    .rates-grid 
    {
        grid-template-columns: 1fr;
    }
    
    .rate-card 
    {
        padding: 25px 20px;
    }
    
    .rate-card.featured::after 
    {
        font-size: 0.6rem;
        padding: 4px 30px;
        right: -35px;
    }
    
    .notice-card 
    {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .cta-section 
    {
        padding: 60px 0;
    }
    
    .cta-section h2 
    {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) 
{
    .shipping-hero
    {
        margin-top: 136px;
    }
}

/* Print Styles */
@media print 
{
    .shipping-hero 
    {
        background: #1a1a2e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .shipping-card,
    .rate-card 
    {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .cta-section,
    .policy-link-section 
    {
        display: none;
    }
}

/* Smooth Scroll for Anchor Links */
html 
{
    scroll-behavior: smooth;
}

/* Accessibility Focus States */
.shipping-card a:focus,
.rate-card:focus 
{
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

.btn-policy-link:focus,
.btn-warning:focus 
{
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}