/* Responsive Styles - Mobile First Approach */

/* Small devices (landscape phones, 480px and up) */
@media (max-width: 480px) {
    .how-it-works {
        padding: 40px 15px;
    }

    .carousel-header {
        margin-bottom: 30px;
    }

    .why-choose-us {
        padding: 10px 15px 40px;
    }

    .customer-testimonials {
        padding: 40px 15px;
    }

    .partners-section {
        padding: 40px 15px;
    }

    .footer-column h3 {
        font-size: 16px;
    }

    .footer-links li a,
    .social-link {
        font-size: 14px;
    }

    .info-value {
        font-size: 16px;
        word-break: break-word;
    }

    .brand-logo h2 {
        font-size: 28px;
    }

    .faq-page-header h1 {
        font-size: 28px;
    }

    .faq-question h3 {
        font-size: 15px;
    }

    #packageForm .item-row {
        grid-template-columns: 1fr;
    }
}

/* Medium devices (tablets, 640px and up) */
@media (min-width: 640px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .wcu-title {
        font-size: 36px;
    }

    .wcu-subtitle {
        font-size: 20px;
    }

    .wcu-image {
        height: 500px;
    }

    .reviews-title {
        font-size: 32px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-subtitle {
        font-size: 20px;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, 203px);
        justify-content: center;
        gap: 32px;
    }
}

/* Medium to Large tablets (768px and down) */
@media (max-width: 768px) {
    .logo img {
        max-width: 120px;
    }

    .carousel-header h2 {
        font-size: 2rem;
    }

    .carousel-wrapper {
        padding: 0 60px;
    }

    .carousel-item {
        flex-basis: 100%;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .hero-image img {
        height: 250px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 40px auto;
    }

    .info-card::after {
        display: none;
    }

    .form-container h2 {
        font-size: 32px;
    }

    .contact-form-section {
        padding: 50px 20px;
    }

    footer {
        padding: 40px 20px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-brand {
        margin-bottom: 30px;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-column {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-column h3 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
        margin: 0;
        cursor: pointer;
        user-select: none;
    }

    .accordion-toggle {
        display: block;
        font-size: 24px;
        font-weight: 300;
        transition: transform 0.3s;
    }

    .footer-column.active .accordion-toggle {
        transform: rotate(45deg);
    }

    .footer-links,
    .social-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
    }

    .footer-column.active .footer-links,
    .footer-column.active .social-links {
        max-height: 500px;
        padding-bottom: 20px;
    }

    .footer-bottom {
        margin: 30px -20px 0;
        padding: 20px;
    }

    .copyright {
        font-size: 13px;
    }

    .faq-page-container {
        padding: 40px 15px;
    }

    .faq-page-header h1 {
        font-size: 32px;
    }

    .faq-question h3 {
        font-size: 16px;
    }

    .faq-answer p {
        font-size: 15px;
    }

    .faq-question {
        padding: 20px 10px;
    }

    .faq-item.active .faq-answer {
        padding: 0 10px 20px 10px;
    }

    .modal-content {
        margin: 20px;
    }

    .modal-header {
        padding: 25px 20px 15px;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-section h3 {
        font-size: 16px;
    }

    .modal-section p,
    .modal-section li {
        font-size: 14px;
    }

    .about-section {
        padding: 40px 0px !important;
    }

    .about-image {
        padding: 0 !important;
        height: 200px;
    }

    .about-image img {
        height: 100%;
        width: auto;
    }

    .request-quote {
        padding: 40px 0px;
    }

    .request-quote .form-row {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .request-quote .form-row .form-group {
        width: 100%;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 991px) {
    #packageForm .item-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal columns */
    gap: 12px;
    align-items: center;
  }

  /* 1️⃣ First .form-group (Item) spans full width */
  #packageForm .item-row .form-group:nth-child(1) {
    grid-column: 1 / -1; /* span across both columns */
  }

  /* 2️⃣ Second (.form-group for Class) stays left */
  #packageForm .item-row .form-group:nth-child(2) {
    grid-column: 1;
  }

  /* 3️⃣ Third (.form-group for Weight) stays right */
  #packageForm .item-row .form-group:nth-child(3) {
    grid-column: 2;
  }

  /* 4️⃣ Unit toggle aligns right of Weight */
  #packageForm .item-row .unit-toggle-container {
    grid-column: 3;      /* align with Weight column */
  }
}

@media (min-width: 769px) and (max-width: 1440px) {
    .logo .logo-image {
        max-width: 130px;
    }
    .nav-desktop .nav-link {
        font-size: 14px;
    }
    .nav-desktop .btn {
        font-size: 14px;
    }
}

/* Large tablets and small desktops (769px and up) */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }

    .nav-desktop {
        display: flex;
    }

    .hero-section {
        min-height: 600px;
        padding: 80px 40px;
    }

    .hiw-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .hiw-step {
        max-width: 275px;
    }

    .wcu-content {
        grid-template-columns: 505px 1fr;
        gap: 125px;
    }

    .wcu-image {
        height: 758px;
    }

    .carousel-nav {
        display: flex;
    }

    .carousel-dots {
        display: none;
    }

    .footer-content {
        grid-template-columns: auto 1fr;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-links-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 80px;
    }

    .footer-section h3 {
        text-align: left;
    }

    .footer-links {
        align-items: flex-start;
    }

    .social-links {
        align-items: flex-start;
    }
}

/* Desktop and below (1024px and down) */
@media (max-width: 1024px) {
    .header .header-inner .nav-desktop .nav-link {
        padding: 10px;
        font-size: 14px;
        letter-spacing: 0;
    }

    .carousel-item {
        flex-basis: 50%;
    }

    .why-choose-us {
        padding-top: 0;
    }

    .why-choose-us .wcu-content {
        gap: 30px;
    }

    .why-choose-us .wcu-feature {
        padding: 20px;
    }
}

/* Large desktops (1025px and up) */
@media (min-width: 1025px) {
    .hero-title {
        font-size: 54px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-section {
        min-height: 700px;
        padding: 100px 100px;
    }

    .wcu-subtitle {
        font-size: 24px;
    }

    .reviews-title {
        font-size: 40px;
    }

    .cta-title {
        font-size: 40px;
    }

    .cta-subtitle {
        font-size: 24px;
    }

    .cta-banner {
        border-radius: 30px;
        min-height: 500px;
    }

    .carousel-item {
        flex-basis: 33.333%;
    }
}