/* === AED SEND A PARCEL FORM (Centered Layout) === */
body.page .entry-content .send-a-parcel-fields,
body.woocommerce-page .send-a-parcel-fields {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  max-width: 750px !important;
  width: 100% !important;
  margin: 40px auto !important; /* centers form horizontally */
  background: #fff !important;
  padding: 25px 30px !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
  box-sizing: border-box;
}

/* Section headings */
.send-a-parcel-fields h3 {
  margin-top: 10px !important;
  font-size: 18px !important;
  color: #111 !important;
  border-bottom: 2px solid #f1f1f1 !important;
  padding-bottom: 4px !important;
  text-align: left !important;
}

/* Each field block */
.send-a-parcel-fields p,
.send-a-parcel-fields .field {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Labels */
.send-a-parcel-fields label {
  font-weight: 600 !important;
  color: #222 !important;
  margin-bottom: 6px !important;
  font-size: 15px !important;
}

/* Inputs, selects, textarea */
.send-a-parcel-fields input[type="text"],
.send-a-parcel-fields input[type="number"],
.send-a-parcel-fields input[type="email"],
.send-a-parcel-fields select,
.send-a-parcel-fields textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  color: #333 !important;
  background: #fff !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease-in-out !important;
}

/* Focus state */
.send-a-parcel-fields input:focus,
.send-a-parcel-fields select:focus,
.send-a-parcel-fields textarea:focus {
  border-color: #007cba !important;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2) !important;
  outline: none !important;
}

/* Textarea */
.send-a-parcel-fields textarea {
  min-height: 130px !important;
  resize: vertical !important;
}

/* Dynamic price label */
#dynamic-price {
  font-size: 1.3em !important;
  font-weight: 600 !important;
  color: #007cba !important;
  margin-top: 10px !important;
  text-align: right !important;
}

/* Add to cart button */
form.cart .single_add_to_cart_button {
  width: 100% !important;
  padding: 14px !important;
  margin-top: 15px !important;
  background-color: #007cba !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
}

.aed-rider-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #dee2e6;
}
.aed-rider-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #007cba;
}

/* Container & Global Style */
.parcel-container {
    background: #F8F9F9;
    padding: 30px;
    border-radius: 16px;
    max-width: 550px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 1. Step Indicator (Matching Expo) */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.step-indicator .dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #D5DBDB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #BDC3C7;
    transition: all 0.3s ease;
}

.step-indicator .dot.active {
    background: #FF6F00; /* Orange */
    border-color: #FF6F00;
    color: #fff;
}

.step-indicator .line {
    width: 50px;
    height: 2px;
    background: #D5DBDB;
    margin: 0 10px;
}

.step-indicator .dot.active ~ .line {
    background: #FF6F00;
}

/* 2. Form Typography & Inputs */
.form-step h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1A242F; /* Dark Blue */
    margin-bottom: 25px;
}

.form-step input, 
.form-step select {
    width: 100%;
    height: 55px;
    padding: 0 15px;
    margin-bottom: 18px;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    font-size: 16px;
    color: #2C3E50;
    font-weight: 600;
}

.form-step input:focus {
    outline: 2px solid #FF6F00;
}

/* 3. Logic: Form Step Visibility */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. Pricing & Footer */
.price-footer {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #F2F3F4;
}

.price-footer span:first-child {
    color: #95A5A6;
    font-weight: 600;
    font-size: 14px;
}

#display-price {
    color: #27AE60; /* Green Price */
    font-size: 26px;
    font-weight: 900;
}

/* 5. Buttons (Dark Blue & Orange) */
.next-btn, .submit-btn {
    background: #1A242F; /* Dark Blue */
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background 0.2s;
}

.next-btn:hover, .submit-btn:hover {
    background: #2c3e50;
}

.btn-group {
    display: flex;
    gap: 15px;
}

.btn-group button:first-child {
    background: #ECF0F1;
    color: #7F8C8D;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}
.gmw-classic-widgets-notice, .notice-warning, .updated.gmw-notice { 
        display: none !important;
}

/* --- Refined Logistics Layout Fix --- */

/* --- Dominant Main Content Layout --- */

.green-logistics-layout .layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px; /* Increased from 1100px to dominate the screen */
    margin: 40px auto;
    gap: 30px; /* Slightly tighter gap to keep it "compact" */
    padding: 0 40px;
    align-items: flex-start; /* Ensures sidebar doesn't stretch vertically */
}

/* Main Content Card: Now the clear protagonist */
.green-logistics-layout .content-card {
    background: #ffffff;
    padding: 60px; /* More internal breathing room for a 'plush' feel */
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05); /* Softer, larger shadow for depth */
    border: 1px solid #f0f4f7;
    flex: 3; /* Increased ratio from 2 to 3 to push sidebar further right */
    min-width: 60%; /* Ensures it stays dominant on medium screens */
}

/* Sidebar: Pushed further to the right */
.green-logistics-layout .sidebar-column {
    flex: 1; 
    min-width: 280px;
    /* Optional: adds a slight fade to the sidebar so it doesn't compete with main content */
    opacity: 0.95; 
}

/* --- Sticky Sidebar Logic --- */
.green-logistics-layout .sidebar-column {
    flex: 1; 
    min-width: 280px;
    position: -webkit-sticky; /* Support for older Safari */
    position: sticky;
    top: 100px; /* Adjust this value if your top menu is taller/shorter */
    height: fit-content; /* Critical: tells the sidebar only to be as tall as its widgets */
    align-self: flex-start; /* Prevents the sidebar from stretching to the height of the content card */
}

/* Ensure the wrapper allows for sticking */
.green-logistics-layout .layout-wrapper {
    display: flex;
    align-items: flex-start; /* Necessary for position: sticky to work in a flexbox */
}

/* Styling the Sidebar Widgets to match the Main Card */
.green-logistics-layout .widget {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f4f7;
    transition: transform 0.3s ease;
}

.green-logistics-layout .widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.green-logistics-layout .widget-title {
    font-size: 1.2rem;
    color: #27AE60; /* Brand Green */
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Disable sticky on mobile so it scrolls naturally */
@media screen and (max-width: 1024px) {
    .green-logistics-layout .sidebar-column {
        position: static;
    }
}

/* Mobile Fix: Ensure it still looks good on phones */
@media screen and (max-width: 1024px) {
    .green-logistics-layout .layout-wrapper {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .green-logistics-layout .content-card {
        padding: 40px 20px;
        flex: 1 1 100%; /* Stack on tablets/phones */
    }
}

/* Style for the Contact Form inputs to match the "Green" theme */
.green-logistics-layout input[type="text"],
.green-logistics-layout input[type="email"],
.green-logistics-layout textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
}

.green-logistics-layout input:focus,
.green-logistics-layout textarea:focus {
    border-color: #27AE60;
    outline: none;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.2);
}

/* Button Styling for Green FuudNParcel */
.green-logistics-layout button,
.green-logistics-layout input[type="submit"] {
    background-color: #27AE60 !important;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.green-logistics-layout button:hover {
    background-color: #219150 !important;
    transform: translateY(-2px);
}

/* --- Global Typography & Alignment Fixes --- */

/* 1. Universal Font & Body Styling */


.green-logistics-layout {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color:#333 ;
    -webkit-font-smoothing: antialiased;
}

/* 2. Centering the Header & Subtitle */
.logistics-page-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers horizontally */
    justify-content: center; /* Centers vertically */
    text-align: center;
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%); /* Subtle gradient for depth */
    padding: 80px 20px;
    border-bottom: 6px solid #27AE60;
}

.logistics-page-header h1.entry-title {
    font-size: 2.0rem;
    font-weight: 800;
    margin: 0 ;
    letter-spacing: -1px;
    line-height: 1.1;
    color:#000000 ;
}

.logistics-page-header .subtitle {
    display: block;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color:#27AE60 ;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* 3. Professional Content Justification */
.green-logistics-layout .content-card {
    text-align: justify; /* Creates clean edges for a formal look */
    text-justify: inter-word;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* 4. Formatting Headings inside the content */
.content-card h1, .content-card h2, .content-card h3 {
    text-align: justify; /* Centers headings within your text */
    color: #2c3e50;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

@media screen and (max-width: 768px) {
    .content-card h1, 
    .content-card h2, 
    .content-card h3 {
        text-align: left; /* Prevents the 'stretched' look on mobile */
        hyphens: auto;    /* Optional: breaks long words with a dash if needed */
        word-spacing: normal;
        margin-top: 1.2em; /* Slightly tighter spacing for smaller screens */
    }
}
/* 5. Center the Featured Image Caption */
.media-caption {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}
/* --- Header Title & Subtitle Enhancements --- */

.logistics-page-header h1.entry-title {
    color: #ffffff !important; /* Force title to white */
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Adds depth and improves readability */
}

.logistics-page-header .subtitle {
    color: #27AE60 !important; /* Keeping the brand green for the subtitle */
    text-align: center;
}

/* --- Content Alignment & Typography --- */

.green-logistics-layout .content-card {
    /* OPTION A: Centered Content (Best for short text/Contact pages) */
    text-align: left; 
    
    /*OPTION B: Justified Content (Uncomment below if you prefer clean edges) */
    text-align: justify; text-justify: inter-word; 
    
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2c3e50; /* Dark blue-grey for better readability than pure black */
    max-width: 800px; /* Prevents lines from being too wide to read comfortably */
    margin: 0 auto;  /* Centers the content block itself */
}

/* Ensure all images and forms inside the card are centered */
.content-card img, 
.content-card form,
.content-card .wp-block-image {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Fix for Contact Form 7 or other forms to look centered */
.content-card div.wpcf7, 
.content-card .gform_wrapper {
    margin: 0 auto;
    max-width: 600px; /* Keeps the form focused and professional */
    text-align: left; /* Keeps labels aligned left inside the centered container */
}

/* --- REFINE LOGISTICS HEADER (LIGHTER & PROFESSIONAL) --- */

/* 1. Header Container - Reduced height and softened background */
.green-logistics-layout .logistics-page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Soft Navy to Professional Slate gradient */
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%); 
    padding: 50px 20px; /* Reduced from 80px to be less domineering */
    border-bottom: 4px solid #27AE60; /* Thinner brand line for elegance */
    margin-top: 0 !important;
}

/* 2. Entry Title - Crisp White and perfectly scaled */
.green-logistics-layout .logistics-page-header h1.entry-title {
    font-size: 2.4rem; /* Slightly larger for authority, but not overwhelming */
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: #ffffff !important; /* Pure white for maximum contrast */
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 3. Subtitle - Clean and balanced */
.green-logistics-layout .logistics-page-header .subtitle {
    display: block;
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #27AE60 !important; /* Brand Green */
    text-transform: uppercase;
    letter-spacing: 4px; /* Slightly wider tracking for a "premium" feel */
}

/* 4. Kill the Twenty Seventeen Header Gap (The 160px fix) */
.green-logistics-layout .custom-header,
.green-logistics-layout .site-header {
    margin-bottom: 0 !important;
}

.green-logistics-layout .site-content-contain {
    padding-top: 0 !important;
    
}

/* 5. The Content Wrapper Overlap */
.green-logistics-layout .layout-wrapper {
    max-width: 1400px;
    margin: -35px auto 40px auto !important; /* Pulls the white card UP into the header */
    position: relative;
    z-index: 20;
    display: flex;
    gap: 30px;
    padding: 0 40px;
}

/* 6. Professional Card Styling */
.green-logistics-layout .content-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    flex: 3;
    text-align: left; /* Kept left for standard professional reading */
}

/* 7. Mobile Responsiveness for Header */
@media screen and (max-width: 768px) {
    .green-logistics-layout .logistics-page-header {
        padding: 40px 15px;
    }
    .green-logistics-layout .logistics-page-header h1.entry-title {
        font-size: 1.8rem !important;
    }
    .green-logistics-layout .layout-wrapper {
        margin-top: 0 !important; /* Remove overlap on mobile for cleaner stacking */
        padding: 0 15px;
    }
}



/* --- Sidebar CTA Styling --- */

.sidebar-cta-card {
    text-align: left;
}

.cta-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.cta-icon {
    font-size: 1.2rem;
}

.sidebar-cta-card h4 {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 700;
}

.sidebar-cta-card p {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.4;
}

.cta-divider {
    height: 1px;
    background: #f0f4f7;
    margin-bottom: 20px;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: #fff !important;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 15px;
    transition: transform 0.2s, background 0.2s;
}

.whatsapp-btn img {
    width: 20px;
    height: 20px;
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: scale(1.02);
}

/* Secondary Action Button */
.quote-btn {
    display: block;
    text-align: center;
    background-color: #2c3e50;
    color: #fff !important;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.quote-btn:hover {
    background-color: #1a252f;
}

/* Modal Overlay with Blur */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 99999; /* High z-index to stay above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 42, 58, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-popup {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #cbd5e0;
    cursor: pointer;
    transition: color 0.2s;
}

.close-popup:hover { color: #2d3748; }

.modal-header h3 {
    color: #27AE60;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.modal-content input, .modal-content textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    background: #f8fafc;
}

.submit-dispatch {
    width: 100%;
    background: #27AE60;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-dispatch:hover { background: #219150; }

/* Trigger Button Styling */
.quote-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    display: block;
    text-align: center;
    background-color: #2c3e50;
    color: #fff !important;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

/* Tracking Specific Styles */
.track-btn-style {
    background-color: #1a2a3a !important; /* Darker navy for a 'tech' feel */
    border-bottom: 3px solid #27AE60 !important;
}

.tracking-icon-circle {
    font-size: 40px;
    background: #f0fdf4;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 2px solid #27AE60;
}

.tracking-modal h3 {
    margin-bottom: 5px;
}

.modal-footer-note {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
}

#waybillNumber {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid #e2e8f0;
}

#waybillNumber:focus {
    border-color: #27AE60;
    background: #fff;
}

/* --- Modernized Navigation Bar --- */

/* 1. Main Bar Container */
.navigation-top {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px); /* Modern glass effect */
    border-bottom: 3px solid #27AE60; /* Brand Green Accent */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* 2. Menu Link Styling */
.main-navigation ul li a {
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2c3e50 !important;
    padding: 20px 15px !important;
    transition: all 0.3s ease;
}

/* 3. Hover & Active State Effects */
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: #27AE60 !important;
    background: transparent;
}

/* 4. The "Underline" Animation on Hover */
.main-navigation ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #27AE60;
    transition: width .3s;
    margin-top: 5px;
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item > a::after {
    width: 100%;
}

/* 5. Mobile Menu Toggle Button */
.menu-toggle {
    background-color: #27AE60 !important;
    border-radius: 5px;
    color: #fff !important;
    margin: 10px;
}

/* 6. Professional Dropdown Menus */
.main-navigation ul ul {
    background: #ffffff;
    border-top: 3px solid #27AE60;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 10px 10px;
}

.main-navigation ul ul li a {
    text-transform: none;
    font-size: 0.9rem;
    padding: 12px 20px !important;
}

/* Transform a specific menu item into a button */
.main-navigation ul li.menu-cta-button a {
    background-color: #27AE60 !important;
    color: #ffffff !important;
    border-radius: 25px;
    padding: 10px 20px !important;
    margin-top: 10px;
    margin-left: 15px;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.main-navigation ul li.menu-cta-button a:hover {
    background-color: #219150 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.4);
}

/* Hide the underline effect for the button */
.main-navigation ul li.menu-cta-button a::after {
    display: none;
}
/* --- Vertical Alignment Fix --- */



.custom-header {
    margin-bottom: 0 !important;
}


/* Also remove the bottom margin from the entire header area */
.green-logistics-layout .site-header {
    margin-bottom: 0 !important;
}

/* Pull the page title banner up to touch the navigation bar */
.green-logistics-layout .logistics-page-header {
    margin-top: 0 !important;
}

/* Fix for Twenty Seventeen's hidden spacer at the top of content */
.green-logistics-layout .site-content-contain {
    padding-top: 0 !important;
}

.site-content ::before {
    margin: 0;
}
