/**
 * Clarke Modern - Single Machinery Page Styles
 */

/* Container adjustments */
.machinery-single {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem;
}

/* Breadcrumbs & Share */
.breadcrumbs-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.breadcrumbs {
  flex: 1;
}

.breadcrumbs-inner {
  font-size: 0.9rem;
  color: #666;
}

.breadcrumbs-inner a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-right: 5px;
}

.breadcrumbs-inner a:hover {
  color: var(--primary-color);
}

.breadcrumbs-inner .breadcrumb_last {
  color: var(--primary-color);
  font-weight: 600;
  margin-left: 5px;
}

/* Add spacing to breadcrumb separator */
.breadcrumbs-inner span[property="itemListElement"] {
  margin: 0 3px;
}

.breadcrumbs-inner span[property="itemListElement"]::after {
  content: ">";
}

.breadcrumbs-inner span[property="name"] {
  margin: 0 3px;
}

.share-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.share-label {
  margin-right: 0.5rem;
  font-size: 0.875rem;
  color: #666;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #555;
  transition: all 0.3s ease;
}

.email-share {
  background-color: #555;
}

.facebook-share {
  background-color: #3b5998;
}

.twitter-share {
  background-color: #1da1f2;
}

.print-share {
  background-color: #333;
}

.share-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Machinery Header */
.machinery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.machinery-title-area {
  flex: 1;
  min-width: 300px;
}

.machinery-title-container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.brand-logo-circle {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: white;
  border: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.brand-logo-circle:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.brand-logo-circle img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 50%;
}

.title-content {
  flex: 1;
}

.entry-title {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: #222;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.year-badge {
  color: var(--primary-color);
  font-weight: 900;
}

.machinery-reference {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.machinery-price {
  color: #333;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.price-value {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  background: #f1f1f1;
  padding: 0.5rem;
  border-radius: 5px;
}


.vat-status {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 0.25rem;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  display: inline-block;
}

/* Gallery */
.machinery-gallery {
  margin-bottom: 2.5rem;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); */
}

.machinery-gallery-main {
  position: relative;
  margin-bottom: 1rem;
  overflow: hidden;
}

.main-image-container {
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: white;
  /* padding: 1rem; */
  border-radius: 8px;
  /* height: 450px; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* .main-image-container:hover img {
  transform: scale(1.05);
} */

.machinery-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #dc3545; /* Default red, will be overridden by JS */
}

/* Status Badge Colors for Single Pages */

/* Due In - Blue */
.machinery-status.due-in {
  background-color: #007bff;
  color: #ffffff;
}

/* On Special - Purple */
.machinery-status.on-special {
  background-color: #6f42c1;
  color: #ffffff;
}

/* Sale Agreed - Orange */
.machinery-status.sale-agreed {
  background-color: #ff9900;
  color: #ffffff;
}

/* Sold - Red */
.machinery-status.sold {
  background-color: #cc0000;
  color: #ffffff;
}

/* Mint - Green */
.machinery-status.mint {
  background-color: #28a745;
  color: #ffffff;
}

/* On Hire - Teal */
.machinery-status.on-hire {
  background-color: #17a2b8;
  color: #ffffff;
}

/* As New - Dark Green */
.machinery-status.as-new {
  background-color: #20c997;
  color: #08351c;
}

.machinery-gallery-thumbs {
  /* padding: 1rem; */
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

.gallery-thumbs-container {
  display: flex;
  overflow-x: auto;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f0f0f0;
  padding: 0.5rem 0;
}

.gallery-thumb {
  flex: 0 0 90px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gallery-thumb.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.08);
}

.video-thumb-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #333;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.gallery-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.gallery-prev,
.gallery-next {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Tabs */
.machinery-tabs {
  margin-bottom: 2rem;
}

.tab-nav {
  display: flex;
  list-style: none;
  padding: 0.5rem;
  margin: 0 0 1.5rem 0;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.tab-nav li {
  flex: 1;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  margin: 0 0.25rem;
  border-radius: 6px;
  overflow: hidden;
}

.tab-nav li span {
  display: block;
  padding: 0.8rem 1rem;
  font-weight: 500;
  color: #6c757d;
  background: transparent;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tab-nav li:hover span {
  background: #f8f9fa;
  color: var(--secondary-color);
}

.tab-nav li span i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.tab-nav li.active {
  background: none;
}

.tab-nav li.active span {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 4px rgba(190, 30, 45, 0.2);
}

.tab-nav li.active:after {
  display: none;
}

.tab-nav li.active span i {
  color: white;
}

.tab-content {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane h2 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  padding-bottom: 0.75rem;

}

/* Specifications */
.machinery-specs {
  margin-bottom: 1.5rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.5rem;
}

.spec-item {
  display: flex;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 0.25rem;
}

.spec-label {
  font-weight: 600;
  color: #555;
  margin-right: 0.75rem;
  flex: 0 0 40%;
}

.spec-value {
  color: #333;
  flex: 1;
}

.spec-group {
  grid-column: 1 / -1;
  margin-top: 0.75rem;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}

.spec-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #f9f9f9;
  cursor: pointer;
}

.spec-group-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--secondary-color);
}

.toggle-btn {
  background: none;
  border: none;
  color: #777;
  font-size: 1rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  color: var(--primary-color);
}

.spec-group-content {
  padding: 0.75rem 1rem;
  display: none;
}

.spec-group.open .spec-group-content {
  display: block;
}

.spec-group.open .toggle-btn i {
  transform: rotate(0deg);
}

/* Combined Details Tab: Description Section */
.machinery-description-section {
  padding-top: 1.5rem;
}

.machinery-description-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.machinery-description {
  line-height: 1.7;
  color: #444;
}

.machinery-description p {
  margin-bottom: 1rem;
}

/* Combined Details Tab: Features Section */
.machinery-features-section {
  margin-top: 2rem;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

.machinery-features-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.machinery-features {
  margin-bottom: 0;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.25rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f5f5f5;
}

.features-list li i {
  color: var(--primary-color);
  margin-right: 0.75rem;
}

/* Enquiry */
.machinery-enquiry {
  border-radius: 6px;
}

.location-contact {
  line-height: 1.6;
}

.location-contact h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Related Machinery */
.related-machinery {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.related-machinery h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  text-align: center;
  position: relative;
}

.related-machinery h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.related-machinery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.related-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-item-image {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
}

.related-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-item-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.related-item-content h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.related-item-content h3 a {
  color: var(--secondary-color);
  text-decoration: none;
}

.related-item-content h3 a:hover {
  color: var(--primary-color);
}

.related-item-content .year {
  color: var(--primary-color);
  font-weight: 900;
}

.related-item-content .price {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vat-related {
  font-size: 0.7rem;
  background-color: #f0f0f0;
  color: #666;
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  font-weight: 500;
}

.related-item-content .details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.related-item-content .details span {
  display: flex;
  align-items: center;
}

.related-item-content .details i {
  margin-right: 0.35rem;
  color: #888;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: auto;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  filter: brightness(1.5);
  color: #fff;
}

/* Video Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  width: 80%;
  max-width: 900px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Content List Styling */
.machinery-description ul,
.machinery-description-section ul {
  list-style: none;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.machinery-description ul li,
.machinery-description-section ul li {
  position: relative;
  padding: 0.3rem 0;
}

.machinery-description ul li:before,
.machinery-description-section ul li:before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
  top: 0.3rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .machinery-header {
    flex-direction: column;
  }
  
  .machinery-price {
    margin-left: 0;
    margin-top: 1rem;
    align-self: flex-start;
  }
  
  .enquiry-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .machinery-title-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
  
  .brand-logo-circle {
    width: 3rem;
    height: 3rem;
    order: -1;
  }
  
  .title-content {
    order: 1;
  }
  
  .breadcrumbs-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .breadcrumbs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
  }
  
  .share-container {
    justify-content: center;
    width: 100%;
  }
  
  .tab-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .tab-nav::-webkit-scrollbar {
    display: none;
  }
  
  .tab-nav li {
    flex: 0 0 auto;
    min-width: 120px;
  }
  
  .tab-nav li span {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .tab-content {
    padding: 1.5rem 1rem;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .features-list {
    grid-template-columns: 1fr;
  }
  
  .related-machinery-grid {
    grid-template-columns: 1fr;
  }
}

/* Two-column Layout */
.machinery-two-column-layout {
  display: block;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 992px) {
  .machinery-two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); /* Adjust ratio for gallery and details */
  }
}

/* Gallery adjustments for two-column layout */
.machinery-gallery {
  margin-bottom: 2.5rem;
  position: relative;
}

/* Responsive media queries */
@media (max-width: 1400px) {
  .related-machinery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .related-machinery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .related-machinery-grid {
    grid-template-columns: 1fr;
  }
  
  .breadcrumbs-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .breadcrumbs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
  }
  
  .share-container {
    margin-top: 0.25rem;
    width: 100%;
    justify-content: flex-start;
  }
  
  .tab-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .tab-nav::-webkit-scrollbar {
    display: none;
  }
  
  .tab-nav li {
    flex: 0 0 auto;
    min-width: 120px;
  }
  
  .tab-nav li span {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .tab-content {
    padding: 1.5rem 1rem;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .machinery-quick-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-enquire,
  .location-link {
    width: 100%;
    justify-content: center;
    max-width: 300px;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox .close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 1005;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-navigation {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
}

/* Main image container */
.main-image-container {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.main-image-container img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-fit: contain;
}

.lightbox-trigger {
  display: block;
  overflow: hidden;
}

@media (max-width: 768px) {
  .lightbox-navigation {
    padding: 0 10px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Fullscreen button */
.fullscreen-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  border: none;
}

.main-image-container:hover .fullscreen-btn {
  background-color: var(--primary-color);
}

.fullscreen-btn:hover {
  background-color: var(--primary-color);
}

/* Quick actions */
.machinery-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
    align-items: center;
    justify-content: flex-end;
}

.machinery-quick-actions .btn-enquire,
.machinery-quick-actions .location-link {
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s ease;
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
    white-space: nowrap;
    min-height: 0;
    box-sizing: border-box;
}

.machinery-quick-actions .btn-enquire {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #d0d0d0;
}

.machinery-quick-actions .btn-enquire:hover {
    background-color: #f7f7f7;
    border-color: #bbbbbb;
    color: #111111;
}

.machinery-quick-actions .location-link {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    padding: 0;
}

.machinery-quick-actions .location-link:hover {
    text-decoration: underline;
}

.machinery-quick-actions .btn-enquire i,
.machinery-quick-actions .location-link i {
    font-size: 0.9em;
    flex-shrink: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.modal-content {
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: white;
    position: relative;
    margin: 2rem;
    max-width: 900px;
    width: auto;
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 4rem);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        transform: scale(0.9) translateY(-30px); 
        opacity: 0; 
    }
    to { 
        transform: scale(1) translateY(0); 
        opacity: 1; 
    }
}

.close-modal {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    color: #888;
    font-size: 1.8rem;
    background-color: transparent;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
}

.close-modal:hover {
    color: #333;
    background-color: #f0f0f0;
    transform: rotate(90deg);
}

/* Call Request Modal Specific Styles */
#call-request-modal .modal-content {
    max-width: 500px;
    padding: 2rem;
}

#call-request-modal h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
}

#call-request-modal p {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Contact Form 7 Styles */
.cf-input input,
.cf-input textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

.cf-input input:focus,
.cf-input textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(190, 30, 45, 0.25);
    background-color: #fff;
}

.cf-input textarea {
    min-height: 120px;
    resize: vertical;
}

.cf-input {
    margin-bottom: 1rem;
}

.cf-submit {
    text-align: center;
    margin-top: 1.5rem;
}

.wpcf7-submit,
input[type="submit"].wpcf7-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: auto;
    display: inline-block;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpcf7-submit:hover,
input[type="submit"].wpcf7-submit:hover {
    background-color: var(--primary-color);
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Disabled submit button state */
.wpcf7-submit:disabled {
    background-color: #cccccc !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7 !important;
    transition: none !important;
}

.wpcf7-submit:disabled:hover {
    background-color: #cccccc !important;
    color: #888888 !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

#call-request-modal .wpcf7-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

#call-request-modal .wpcf7-submit:hover {
    background-color: var(--primary-color);
    filter: brightness(1.2);
    transform: translateY(-2px);
}

#call-request-modal .wpcf7-submit:disabled {
    background-color: #cccccc;
    color: #888888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
    transition: none;
}

#call-request-modal .wpcf7-submit:disabled:hover {
    background-color: #cccccc;
    color: #888888;
    transform: none;
    box-shadow: none;
    filter: none;
}

/* Checkbox and acceptance styling */
.acceptance-20 {
    display: flex;
    align-items: flex-start;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.acceptance-20 .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
}

.acceptance-20 input[type="checkbox"] {
    appearance: checkbox;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    margin-top: 3px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    outline: none;
    padding: 0;
    background-color: #fff;
}

.acceptance-20 input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.acceptance-20 .wpcf7-list-item-label {
    cursor: pointer;
    user-select: none;
}

.acceptance-20 a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.acceptance-20 a:hover {
    color: var(--secondary-color);
}

/* Contact Form 7 response messages */
.wpcf7-response-output {
    margin: 1rem 0 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
    border-width: 1px !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb !important;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-spinner {
    margin: 0 0 0 10px !important;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    opacity: 1 !important;
}

.wpcf7 form.submitting {
    position: relative;
}

.wpcf7 form.submitting::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
    border-radius: 5px;
}

/* Responsive modal adjustments */
@media (max-width: 576px) {
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    #call-request-modal .modal-content {
        padding: 1.5rem;
    }
    
    #call-request-modal h3 {
        font-size: 1.3rem;
    }
    
    #call-request-modal p {
        font-size: 0.9rem;
    }
}

/* Finance Calculator Styles */
.machinery-finance-calculator {
    max-width: 800px;
    margin: 0 auto;
}

.machinery-finance-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.machinery-finance-intro p {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.machinery-finance-price-display {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.machinery-finance-price-display h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.machinery-finance-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.machinery-finance-option {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    position: relative;
    min-height: 60px;
}

.machinery-finance-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.machinery-finance-term {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-width: 100px;
    flex-shrink: 0;
}

.machinery-finance-term h4 {
    margin: 0 0 0.2rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.1;
}

.machinery-finance-deposit-info {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.machinery-finance-details {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.machinery-payment-options {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.machinery-payment-option {
    text-align: center;
}

.machinery-payment-option .amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.machinery-payment-option .label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.machinery-finance-additional-info {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.machinery-finance-additional-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.machinery-finance-additional-info li {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
    position: relative;
    padding-left: 0.8rem;
}

.machinery-finance-additional-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.monthly-payment {
    margin-right: 1rem;
}

.monthly-payment .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    line-height: 1.2;
}

.monthly-payment .label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.machinery-finance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-left: 1px solid #f0f0f0;
    min-width: 180px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.breakdown-label {
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.breakdown-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.machinery-finance-disclaimer {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.machinery-finance-disclaimer h4 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.machinery-finance-disclaimer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.machinery-finance-disclaimer p:last-of-type {
    margin-bottom: 1.5rem;
}

.machinery-finance-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-finance-apply,
.btn-finance-enquire {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-finance-apply {
    background-color: var(--primary-color);
    color: white;
}

.btn-finance-apply:hover {
    background-color: var(--primary-color);
    filter: brightness(1.2);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-finance-enquire {
    background-color: var(--secondary-color);
    color: white;
}

.btn-finance-enquire:hover {
    background-color: var(--secondary-color);
    filter: brightness(1.2);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.machinery-finance-other-options {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 2rem;
}

.machinery-finance-other-options h4 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.machinery-finance-other-options p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Responsive adjustments for finance calculator */
@media (max-width: 768px) {
    .machinery-finance-option {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .machinery-finance-term {
        padding: 0.8rem;
        grid-row: 1;
    }
    
    .machinery-finance-details {
        padding: 1rem;
        grid-row: 2;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .machinery-finance-breakdown {
        grid-row: 3;
        border-left: none;
        border-top: 1px solid #f0f0f0;
        min-width: auto;
    }
    
    .monthly-payment .amount {
        font-size: 1.3rem;
    }
    
    .machinery-finance-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-finance-apply,
    .btn-finance-enquire {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Salesmen Contact Section */
.machinery-salesmen {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
}

.machinery-salesmen h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.salesmen-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.salesman-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eee;
}

.salesman-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.salesman-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.salesman-avatar {
    flex-shrink: 0;
}

.salesman-avatar img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.salesman-card:hover .salesman-avatar img {
    border-color: var(--primary-color);
}

.salesman-details {
    flex: 1;
}

.salesman-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.salesman-location {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.salesman-location i {
    margin-right: 0.25rem;
    /* color: var(--primary-color); */
    font-size: 0.9rem;
}

.salesman-contact {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.salesman-phone,
.salesman-whatsapp {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
}

.salesman-phone {
    background-color: #28a745;
    color: white;
}

.salesman-phone:hover {
    background-color: #218838;
    transform: translateY(-1px);
    color: white;
}

.salesman-whatsapp {
    background-color: #25D366;
    color: white;
}

.salesman-whatsapp:hover {
    background-color: #20b85a;
    transform: translateY(-1px);
    color: white;
}

.salesman-phone i,
.salesman-whatsapp i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.salesman-description {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .machinery-salesmen {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .machinery-salesmen h3 {
        margin-bottom: 0.75rem;
        font-size: 1.2rem;
    }
    
    .salesmen-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .salesman-card {
        padding: 0.75rem;
    }
    
    .salesman-info {
        gap: 0.75rem;
        align-items: center;
    }
    
    .salesman-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .salesman-name {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }
    
    .salesman-location {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .salesman-contact {
        gap: 0.4rem;
        margin-bottom: 0.25rem;
    }
    
    .salesman-phone,
    .salesman-whatsapp {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .salesman-description {
        margin-top: 0.1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .machinery-salesmen {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .machinery-salesmen h3 {
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
    }
    
    .salesmen-grid {
        gap: 0.5rem;
    }
    
    .salesman-card {
        padding: 0.5rem;
    }
    
    .salesman-info {
        gap: 0.5rem;
    }
    
    .salesman-avatar img {
        width: 45px;
        height: 45px;
    }
    
    .salesman-name {
        font-size: 0.95rem;
        margin-bottom: 0.05rem;
    }
    
    .salesman-location {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    .salesman-contact {
        gap: 0.3rem;
        margin-bottom: 0.1rem;
    }
    
    .salesman-phone,
    .salesman-whatsapp {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .salesman-description {
        margin-top: 0.05rem;
        font-size: 0.7rem;
        line-height: 1.3;
    }
}

/* Custom GLightbox Styles */
.glightbox-container {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999 !important;
    overflow: hidden;
    touch-action: none;
    -webkit-text-size-adjust: 100%;
    -webkit-backface-visibility: hidden;
    outline: none;
}

.gslide-description {
    background: rgba(0, 0, 0, 0.7);
}

.gslide-title {
    font-size: 1rem;
    font-weight: normal;
}

.gnext, 
.gprev {
    background-color: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gnext:hover, 
.gprev:hover {
    background-color: var(--primary-color);
}

.gclose {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gclose:hover {
    background: var(--primary-color);
}

/* Machinery Footer Section */
.machinery-footer {
    margin-top: 4rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.machinery-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="3"/></g></svg>') repeat;
    pointer-events: none;
}

.machinery-footer-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.machinery-footer h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

.machinery-footer p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.machinery-footer-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.footer-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-highlight-icon {
    background-color: var(--primary-color);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.footer-highlight-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
}

.footer-highlight-content p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.machinery-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-footer-primary,
.btn-footer-secondary {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-footer-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-footer-primary:hover {
    background-color: var(--primary-color);
    filter: brightness(1.2);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-footer-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-footer-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.footer-contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: white;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .machinery-footer {
        margin-top: 3rem;
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .machinery-footer h2 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .machinery-footer p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .machinery-footer-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-highlight {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .machinery-footer-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-footer-primary,
    .btn-footer-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }
    
    .footer-contact-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .machinery-footer {
        padding: 1.5rem 1rem;
    }
    
    .machinery-footer h2 {
        font-size: 1.5rem;
    }
    
    .machinery-footer p {
        font-size: 0.9rem;
    }
    
    .footer-highlight-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .footer-highlight-content h3 {
        font-size: 1rem;
    }
    
    .footer-highlight-content p {
        font-size: 0.85rem;
    }
}

/* Branch Selector Styles */
.branch-selector-container {
    margin-bottom: 0.5rem;
}

.branch-selector-container label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.branch-selector {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    background-color: #fff;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 40px;
}

.branch-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(190, 30, 45, 0.12);
}

.branch-selector:hover {
    border-color: #c7c7c7;
}

/* Branch Contact Information Display */
.branch-contact-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    animation: slideDown 0.3s ease;
}

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

.branch-contact-header {
    margin-bottom: 1rem;
}

.branch-contact-header h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.branch-contact-header i {
    color: var(--primary-color);
}

.branch-contact-details {
    color: #555;
    line-height: 1.6;
}

.branch-contact-details p {
    margin-bottom: 0.75rem;
}

.branch-contact-details p:last-child {
    margin-bottom: 0;
}

.branch-contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.branch-contact-details a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

.branch-contact-details strong {
    color: #333;
}

.loading-branch-info {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 1rem;
}

.loading-branch-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.branch-error {
    color: #dc3545;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

/* Responsive adjustments for branch selector */
@media (max-width: 768px) {
    .branch-selector-container {
        margin-bottom: 1.5rem;
    }
    
    .branch-contact-info {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .branch-contact-header h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .branch-selector {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .branch-contact-info {
        padding: 0.75rem;
    }
    
    .branch-contact-details {
        font-size: 0.9rem;
    }
}

/* Simple Enquiry Section Styles */
.enquiry-intro {
    margin-bottom: 1.5rem;
}

.enquiry-intro h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.enquiry-intro p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.simple-enquiry-options {
    margin-bottom: 1.5rem;
    text-align: center;
}

.btn-simple-call {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.btn-simple-call:hover {
    background-color: var(--primary-color);
    filter: brightness(1.1);
}

.btn-simple-call i {
    font-size: 0.9rem;
}

.or-text {
    display: block;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Simple Form Styling */
.enquiry-form {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enquiry-intro {
        margin-bottom: 1rem;
    }
    
    .enquiry-form {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .btn-simple-call {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Simple branch info styling */
.simple-branch-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.simple-branch-info h4 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.simple-branch-info p {
    margin-bottom: 0.3rem;
    line-height: 1.4;
    color: #555;
    font-size: 0.9rem;
}

.simple-branch-info p:last-child {
    margin-bottom: 0;
}

.simple-branch-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.simple-branch-info a:hover {
    text-decoration: underline;
} 