@import "./base.css";

/* ========== GENERAL PRODUCT PAGE STYLES ========== */
.main-content {
  padding: 0.5rem 1rem;

  /* Breadcrumb styling */
  .breadcrumb {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
  }

  .breadcrumb-item a {
    color: var(--main-green-color);
    text-decoration: none;
  }

  .breadcrumb-item a:hover {
    text-decoration: underline;
  }

  .breadcrumb-item.active a {
    color: #6c757d;
    font-weight: 500;
  }

  /* Product title styling */
  .product-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    text-align: left;
    color: var(--color-bright-blue);
  }

  .product-name {
    font-weight: bold;
  }

  .product-label {
    font-weight: normal;
  }

  /* Product details container */
  .product-details {
    margin-bottom: 2rem;
  }

  /* Product highlights and specs */
  .product-highlight {
    color: #0099ff;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.3;
  }

  .product-specs,
  .connections {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
  }

  .product-specs {
    margin: 1rem 0;
    text-align: left;
  }

  .spec-row {
    margin-bottom: 0.5rem;
  }

  .spec-label {
    font-weight: bold;
    margin-right: 0.5rem;
  }

  .feature-text {
    font-size: 1.2rem;
    color: #0099ff;
  }

  /* Button styling */
  .btn-success {
    background-color: #4caf50;
    border-color: #4caf50;
  }

  .btn-warning {
    background-color: #ff9800;
    border-color: #ff9800;
  }

  .btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }

  /* ========== PRODUCT GALLERY STYLES ========== */
  /* Main image container */
  .main-image-container {
    height: 350px;
    width: 100%;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  .main-product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
  }

  /* Zoom hint */
  .zoom-hint {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 0.8rem;
    color: #666;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 1;
  }

  /* Thumbnail containers */
  .thumbnail-container {
    width: 80px;
    height: 80px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .thumbnail {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .thumbnail:hover {
    transform: scale(1.1);
  }

  .thumbnail-container:has(.active),
  .thumbnail-container:hover {
    border-color: var(--main-green-color);
    border-width: 2px;
  }

  .thumbnail-container:has(.active) {
    box-shadow: 0 0 5px rgba(0, 153, 0, 0.5);
  }

  .thumbnail-gallery {
    flex-wrap: wrap;
  }

  /* ========== MODAL STYLES ========== */
  /* Modal dialog sizing */
  .modal-dialog.modal-xl {
    width: 50%;
    max-width: 600px;
    margin: 1.75rem auto;
  }

  .modal-content {
    height: 90vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
  }

  /* Modal header */
  .modal-header {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
  }

  /* Modal body */
  .modal-body {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    position: relative;
    padding: 1rem;
    overflow: hidden;
  }

  .modal-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #modalImage {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
  }

  /* Navigation buttons */
  .modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: var(--border-color);
    border: 1px solid var(--main-green-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }

  .modal-nav-btn:hover {
    background-color: var(--main-green-color);
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }

  /* Image counter */
  .image-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--white-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
  }

  /* Modal footer and thumbnails */
  .modal-footer {
    flex: 0 0 auto;
    height: 90px;
    padding: 0.5rem;
    overflow-x: auto;
  }

  .modal-thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
  }

  .modal-thumbnail {
    height: 60px;
    width: auto;
    object-fit: contain;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
  }

  .modal-thumbnail:hover,
  .modal-thumbnail.active {
    opacity: 1;
    border-color: var(--main-green-color);
  }

  /* PDF Manuals Section */
  .pdf-manuals-section {
    margin-top: 2rem;
  }

  .dotted-separator {
    border-top: 2px dotted var(--color-bright-blue);
    border-bottom: 2px dotted var(--color-bright-blue);
    margin: 0.5rem 0;
    padding: 0.5rem 0;
  }

  .pdf-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .pdf-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    margin-bottom: 0.5rem;
  }

  .pdf-link:hover {
    transform: translateY(-3px);
  }

  .pdf-icon-container {
    margin-right: 0.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pdf-icon {
    width: 100%;
    height: auto;
  }

  .pdf-label {
    font-weight: 500;
    color: var(--color-bright-blue);
    text-decoration: underline;
    font-size: 0.95rem;
  }

  /* For multiple languages */
  html[lang="en"] .pdf-link[data-pdf-type="manual"] .pdf-label {
    content: "Manual";
  }

  html[lang="en"] .pdf-link[data-pdf-type="datasheet"] .pdf-label {
    content: "Technical sheet";
  }

  /* ========== PRODUCT BANNERS STYLES ========== */

  /* Simple hover effect for banner links */
  .banner-link {
    transition: transform 0.2s ease;
  }

  .banner-link:hover {
    transform: translateY(-5px);
  }

  .banner-link-image {
    width: 100px;
    height: 100px;
  }

  /* Banner heading style */
  .banner-heading {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-light-blue);
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-transform: lowercase;
  }

  @media (max-width: 768px) {
  }

  /* ========== PRODUCT MODELS TABLE STYLES ========== */
  .product-models-section {
    margin: 2rem 0;
    width: 100%;
    overflow: visible;
  }

  .product-models-section.overflow-hidden {
    overflow: hidden;
  }

  /* Top scrollbar container */
  .table-scroll-container {
    position: relative;
    width: 100%;
  }

  /* Top scrollbar styling */
  .top-scrollbar {
    overflow-x: auto;
    overflow-y: hidden;
    height: 12px; /* Scrollbar height */
    margin-bottom: 0; /* Remove space between scrollbar and table */
    background: transparent;
    /* Match the exact width of the table container */
    width: 100%;
    max-width: 100%;
  }

  /* Hide the dummy content but maintain scroll width */
  .top-scrollbar-content {
    height: 1px;
    visibility: hidden;
  }

  /* Hide top scrollbar track but keep the thumb visible */
  .top-scrollbar::-webkit-scrollbar-track {
    background-color: transparent;
  }

  /* Custom scrollbar styles */
  .top-scrollbar::-webkit-scrollbar,
  .table-responsive::-webkit-scrollbar {
    height: 12px;
    background-color: #f1f1f1;
    border-radius: 6px;
  }

  .top-scrollbar::-webkit-scrollbar-thumb,
  .table-responsive::-webkit-scrollbar-thumb {
    background-color: var(--main-green-color);
    border-radius: 6px;
  }

  /* Firefox scrollbar styles */
  .top-scrollbar,
  .table-responsive {
    scrollbar-width: thin;
    scrollbar-color: var(--main-green-color) #f1f1f1;
  }

  /* Table container */
  .table-responsive {
    width: 100%;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
    margin-top: 0;
    margin-bottom: 1rem;
    border-radius: 4px;
    position: relative; /* For sticky positioning context */
  }

  .models-table-title {
    color: var(--color-bright-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .models-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  /* Table headers */
  .models-table thead,
  .models-table tbody tr.first,
  .models-table tbody tr.first > * {
    background: #9fd632;
    color: var(--text-color);
    position: sticky;
    top: 0;
  }

  .models-table tbody tr.first.first2 {
    top: 63px;
  }
  .models-table tbody tr.first.first3 {
    top: 63px;
    /* If first2 is 0px, then first3 should be 63px */
    /* If first is 63px, then first3 should be 126px */
  }

  .models-table tbody tr.first.first4 {
    top: 126px;
    /* If first3 is 63px, then first4 should be 126px */
    /* If first3 is 126px, then first4 should be 189px */
  }

  .models-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .models-table th {
    text-align: center;
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
    border: 1px solid var(--color-bright-blue);
    font-weight: bold;
    font-size: 0.9rem;
    background: #9fd632; /* Ensure background is applied to sticky headers */
  }

  /* Table rows */

  .models-table tbody tr {
    background-color: #f0ffe0;
  }

  .models-table tbody tr:nth-child(even) {
    background-color: #e8f5e9;
  }

  .models-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    vertical-align: middle;
    border: 1px solid var(--color-bright-blue);
    font-weight: bold;
    font-size: 1.125rem;
  }

  /* Model cell with image */
  .model-cell {
    max-width: 150px;
    text-align: center;
  }

  .model-image {
    max-width: 85px;
    height: auto;
    margin-bottom: 0.5rem;
    padding: 2px;
  }

  .model-name {
    font-weight: bold;
    font-size: 0.85rem;
  }

  /* Links styling */
  .models-table thead a,
  .models-table tbody tr a {
    color: var(--color-bright-blue);
    font-weight: bold;
  }

  .models-table thead a:hover,
  .models-table tbody tr a:hover {
    text-decoration: none;
  }

  /* Price cell */
  .discount {
    color: red;
    font-weight: bold;
    margin-bottom: 0.25rem;
  }

  .original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 1rem;
  }

  .final-price {
    font-weight: bold;
    color: #000;
  }

  /* Cart controls */
  .quantity-control {
    margin-bottom: 0.5rem;
    
  }

  .quantity-input {  /* questo non è più usato */
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 0.25rem;
  }
  
  
  .qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
 
}

@media (max-width: 480px) {
  .qty-selector {
    transform: scale(0.85);
    transform-origin: left center;
  }
}

.qty-btn {
  width: 44px;          /* target touch consigliato */
  min-height: 33px;
  font-size: 20px;
  background: #ffcc12;
  border: none;
  cursor: pointer;
}

.qty-btn:active {
  background: #e0e0e0;
}

.qty-input {
  width: 56px;
  min-height: 33px;
  text-align: center;
  border: none;
  font-size: 20px;
}

/* Rimuove le frecce native */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input {
  -moz-appearance: textfield;
}

/* su mobile in colonna */
@media (max-width: 480px) {
  .qty-selector {
    flex-direction: column;
    width: 36px; /* allinea tutto */
  }

  .qty-btn,
  .qty-input {
    width: 100%;
  }

  /* ordine visivo */
  .qty-btn[data-action="increase"] {
    order: 1;
  }

  .qty-input {
    order: 2;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }

  .qty-btn[data-action="decrease"] {
    order: 3;
  }
}
  

  .add-to-cart-btn {
    background-color: #ffcc12;
    border: 1px solid #ffcc12;
    border-radius: 30px;
    color: #111;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    line-height: 19px;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    min-height: 29px;
  }

  .add-to-cart-btn:hover {
    opacity: 0.8;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
      0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .add-to-cart-btn:active {
    opacity: 0.8;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
      0 1px 3px rgba(0, 0, 0, 0.2);
  }

  /* Product Navigation Styles */
  .product-nav-link {
    color: var(--main-green-color);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 4px;
  }

  .product-nav-link:hover {
    color: var(--light-green-color);
  }

  .product-nav-link i {
    font-size: 2rem;
  }

  .nav-label {
    font-size: 1.2rem;
    color: #6c757d;
    text-transform: uppercase;
  }

  /* ========== Product Long Description SECTION STYLES ========== */

  .product-long-description {
    margin-top: 2rem;
    padding: 0.5rem 1rem;

    h2 {
      color: var(--color-bright-blue);
      font-size: 3rem;
      margin-bottom: 1rem;
      text-align: center;
      text-transform: none;
    }
    h3 {
      font-size: 2rem;
      margin-bottom: 1rem;
      text-align: center;
      text-transform: none;
      font-weight: bold;
    }
    p {
      font-size: 1.2rem;
      color: var(--text-color);
      margin: 1rem auto;
      text-align: center;
    }

    .accessory-link {
      transition: all 0.2s ease;
    }

    .accessory-link:hover {
      transform: scale(1.1);
    }

    .hover-no-underline:hover {
      text-decoration: none !important;
    }

    .hover-no-underline {
      color: blue;
      font-size: 1.4rem;
      font-weight: bold;
    }
  }

  /* Responsive adjustments */

  @media (max-width: 1300px) {
    .product-models-section {
      overflow: hidden;

      .table-responsive {
        max-height: 600px;
        overflow-x: auto;
        overflow-y: visible;
      }
    }

    /*  This code will be removed for now
    .models-table tbody tr.first.first2 {
      top: 42px;
    }
    .models-table tbody tr.first.first3 {
      top: 84px;
    }
    .models-table tbody tr.first.first4 {
      top: 126px;
    }
      */
  }
  @media (max-width: 992px) {
    .models-table {
      min-width: 900px; /* Forces horizontal scrolling */
    }

    .models-table-title {
      font-size: 1.3rem;
    }

    .table-responsive {
      max-height: 500px; /* Slightly smaller on tablets */
    }
  }

  /* ========== RESPONSIVE STYLES ========== */
  @media (max-width: 992px) {
    .modal-dialog.modal-xl {
      width: 80%;
    }
  }

  @media (max-width: 768px) {
    .product-title {
      font-size: 1.4rem;
    }

    .thumbnail-gallery {
      justify-content: center;
    }

    .pdf-links-container {
      justify-content: center;
    }

    .banner-heading {
      font-size: 1.8rem;
    }

    .table-responsive {
      max-height: 400px; /* Smaller on mobile */
    }
  }

  @media (max-width: 576px) {
    .modal-dialog.modal-xl {
      width: 95%;
    }

    .modal-content {
      height: 85vh;
    }
  }

  /* ========== RELATED PRODUCTS WIDGET STYLES ========== */

  /* Widget Header */
  .related-products-widget {
    margin: 3rem 0;
  }

  .widget-header {
    margin-bottom: 2rem;
  }

  .widget-title {
    color: var(--color-bright-blue);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: none;
  }

  .widget-subtitle {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.8;
  }

  /* Products Grid */
  .related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }

  /* Product Card */
  .related-product-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
  }

  .related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--main-green-color);
  }

  /* Product Card Image */
  .product-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
  }

  .product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
  }

  .product-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 1rem;
  }

  .product-image-link:hover .product-card-img {
    transform: scale(1.05);
  }

  .product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .product-image-overlay i {
    color: white;
    font-size: 2rem;
  }

  .product-image-link:hover .product-image-overlay {
    opacity: 1;
  }

  /* Product Badges */
  .product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
  }

  .badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
  }

  .badge-discount {
    background-color: #dc3545;
    color: white;
  }

  .badge-new {
    background-color: #28a745;
    color: white;
  }

  .badge-bestseller {
    background-color: #ffc107;
    color: #212529;
  }

  .badge-out-of-stock {
    background-color: #6c757d;
    color: white;
  }

  /* Product Card Content */
  .product-card-content {
    padding: 1.5rem;
  }

  .product-card-title {
    margin-bottom: 0.75rem;
  }

  .product-card-title a {
    color: var(--color-bright-blue);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card-title a:hover {
    color: var(--main-green-color);
  }

  /* Product Rating */
  .product-card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .stars {
    display: flex;
    gap: 2px;
  }

  .stars i {
    color: #ffc107;
    font-size: 0.9rem;
  }

  .rating-count {
    color: #6c757d;
    font-size: 0.85rem;
  }

  /* Product Price */
  .product-card-price {
    margin-bottom: 1rem;
  }

  .price-original {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
    margin-right: 0.5rem;
  }

  .price-final {
    color: var(--main-green-color);
    font-size: 1.2rem;
    font-weight: bold;
  }

  /* Product Actions */
  .product-card-actions {
    display: flex;
    gap: 0.5rem;
  }

  .product-card-actions .btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
  }

  .btn-add-to-cart {
    background-color: var(--main-green-color);
    color: white;
  }

  .btn-add-to-cart:hover {
    background-color: #1e7e34;
    color: white;
  }

  .btn-quick-view {
    background-color: #6c757d;
    color: white;
    flex: 0 0 auto;
    width: 40px;
  }

  .btn-quick-view:hover {
    background-color: #545b62;
    color: white;
  }

  .btn-notify-stock {
    background-color: #6c757d;
    color: white;
    opacity: 0.6;
  }

  .btn-notify-stock:hover {
    background-color: #545b62;
    color: white;
  }

  .btn-notify-stock:disabled {
    cursor: not-allowed;
    opacity: 0.4;
  }

  /* Loading State */
  .related-product-card.loading {
    pointer-events: none;
  }

  .related-product-card.loading .product-card-img {
    animation: pulse 1.5s infinite;
  }

  @keyframes pulse {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
    100% {
      opacity: 1;
    }
  }

  /* Responsive Design for Related Products Widget */
  @media (max-width: 1200px) {
    .related-products-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
    }
  }

  @media (max-width: 992px) {
    .widget-title {
      font-size: 2rem;
    }

    .related-products-grid {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
    }

    .product-card-content {
      padding: 1rem;
    }
  }

  @media (max-width: 768px) {
    .widget-title {
      font-size: 1.8rem;
    }

    .widget-subtitle {
      font-size: 1rem;
    }

    .related-products-grid {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
    }

    .product-card-image {
      height: 180px;
    }

    .product-card-title a {
      font-size: 1rem;
    }

    .product-card-actions {
      flex-direction: column;
    }

    .btn-quick-view {
      width: 100%;
    }
  }

  @media (max-width: 576px) {
    .related-products-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .product-card-image {
      height: 200px;
    }

    .product-card-content {
      padding: 1rem;
    }

    .product-card-actions {
      flex-direction: row;
    }

    .btn-quick-view {
      width: 40px;
    }
  }
}

/* Quick Contact Form for Product Page (desktop only) */
@media (min-width: 1200px) {
  .quick-contact-form-product {
    margin-top: 2.5rem;
    padding: 1.5rem 1rem 1.5rem 1rem;
    background: #f8f9fa;
    border: 1.5px solid var(--color-bright-blue);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
  }
  .quick-contact-form-product label {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }
  .quick-contact-form-product .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .quick-contact-form-product input[type="email"],
  .quick-contact-form-product textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    background: #fff;
    color: var(--text-color);
    transition: border-color 0.2s;
    width: 100%;
    resize: vertical;
  }
  .quick-contact-form-product input[type="email"]:focus,
  .quick-contact-form-product textarea:focus {
    border-color: var(--main-green-color);
    outline: none;
  }
  .quick-contact-form-product .btn-block {
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    margin-top: 0.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
  }
  .quick-contact-form-product .btn-block:hover {
    opacity: 0.8;
  }

  /* Contact link styling for desktop */
  .quick-contact-form-product .contact-link {
    color: var(--color-bright-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
  }

  .quick-contact-form-product .contact-link:hover {
    color: var(--main-green-color);
    text-decoration: underline;
  }

  .quick-contact-form-product .contact-link i {
    margin-right: 0.5rem;
  }
}

/* Mobile/Tablet Quick Contact Form */
.mobile-quick-contact-section {
  margin: 2rem 0;
  padding: 0 1rem;
}

.quick-contact-form-product-mobile {
  padding: 1.5rem;
  background: #f8f9fa;
  border: 1.5px solid var(--color-bright-blue);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-contact-form-product-mobile .form-title {
  color: var(--color-bright-blue);
  font-size: 1.3rem;
  font-weight: bold;
}

.quick-contact-form-product-mobile .form-title i {
  margin-right: 0.5rem;
}

.quick-contact-form-product-mobile label {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.quick-contact-form-product-mobile .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quick-contact-form-product-mobile input[type="email"],
.quick-contact-form-product-mobile textarea {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  background: #fff;
  color: var(--text-color);
  transition: border-color 0.2s;
  width: 100%;
  resize: vertical;
}

.quick-contact-form-product-mobile input[type="email"]:focus,
.quick-contact-form-product-mobile textarea:focus {
  border-color: var(--main-green-color);
  outline: none;
}

.quick-contact-form-product-mobile .btn-block {
  width: 100%;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 6px;
  margin-top: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.quick-contact-form-product-mobile .btn-block:hover {
  opacity: 0.8;
}

/* Contact link styling for mobile/tablet */
.quick-contact-form-product-mobile .contact-link {
  color: var(--color-bright-blue);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.quick-contact-form-product-mobile .contact-link:hover {
  color: var(--main-green-color);
  text-decoration: underline;
}

.quick-contact-form-product-mobile .contact-link i {
  margin-right: 0.5rem;
}

@media (max-width: 1199.98px) {
  .quick-contact-form-product {
    display: none !important;
  }
}
