/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* Smooth scroll for internal links */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fb;
  color: #222;
  line-height: 1.5;
}

/* Header */
header {
  background: #000;
  color: #fff;
  padding: 20px 10px;
  text-align: center;
}

.branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.logo {
  max-width: 60px;
  height: auto;
}

.text-group {
  text-align: left;
}

.brand-name {
  margin: 0;
  font-size: 30px;
  font-weight: bold;
}

.tagline {
  font-style: italic;
  font-size: 0.9rem;
  margin: 0;
}

/* Navigation */
nav ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  background: #007BFF;
  border-radius: 4px;
  cursor: pointer;
}

nav a:hover,
nav a:focus {
  background: #0056b3;
  outline: none;
}

nav a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Call Button */
.call-button {
  background-color: #25D366;
  cursor: pointer;
}

/* Main Content */
main {
  padding: 15px;
}

/* Hero Section */
.hero {
  background: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Partners */
.partners {
  background: #fff;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
}

.logo-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 10px 0;
}

.logo-track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: scrollLogos 20s linear infinite;
}

.logo-track img {
  height: 60px;
  max-width: 120px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo-track img:hover {
  transform: scale(1.1);
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* On hover, pause animation */
.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

/* Products */
.products {
  background: #fff;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
}

.product-item {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.product-item:hover,
.product-item:focus-within {
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  cursor: pointer;
}

/* Footer */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 10px;
}

footer a {
  color: #ddd;
  text-decoration: underline;
  cursor: pointer;
}

footer a:hover,
footer a:focus {
  color: #fff;
  outline: none;
  text-decoration: underline;
}

footer a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 40px;
  right: 15px;
  z-index: 999;
  animation: bounce 1s infinite;
  cursor: pointer;
}

.whatsapp-button img {
  width: 100px;
  height: 100px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Animation for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.8s ease forwards;
}

/* Ensure fast & clean rendering */
img {
  max-width: 100%;
  height: auto;
}

/* Center all titles */
h1, h2, h3, .product-item h3 {
  text-align: center;
}

/* ============================================= */
/* Contact Page Specific Styles                 */
/* ============================================= */

/* Color Variables */
:root {
  --primary: #25D366;  /* Main brand color (WhatsApp green) */
  --primary-dark: #128C7E;
  --secondary: #075E54;
  --accent: #34B7F1;
  --dark: #333333;
  --medium: #666666;
  --light: #F5F5F5;
  --border: #DDDDDD;
  --white: #FFFFFF;
  --error: #FF4444;
  --success: #00C851;
}

/* Base Contact Page Styles */
.contact-page {
  background-color: #F9F9F9;
  padding: 40px 0;
}

/* Contact Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns for desktop */
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

@media (max-width: 992px) {
  .contact-grid {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Single column on smaller screens */
    gap: 30px;
    padding: 0 10px;
  }
}

/* Form Container */
.contact-form-container {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

/* Contact Info Sidebar */
.contact-info-sidebar {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 20px;
}

@media (max-width: 768px) {
  .contact-info-sidebar {
    position: static;
  }
}

/* Form Elements */
.contact-form .form-group {
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.contact-form label.required:after {
  content: " *";
  color: var(--error);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
  padding-right: 40px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* AMC Specific Fields */
.amc-fields {
  background: rgba(37, 211, 102, 0.05);
  padding: 20px;
  border-radius: 6px;
  margin-top: 20px;
  border-left: 4px solid var(--primary);
  display: none;
  animation: fadeIn 0.4s ease-out;
}

/* Submit Button */
.contact-form .submit-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 16px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-form .submit-btn:hover,
.contact-form .submit-btn:focus {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  outline: none;
}

.contact-form .submit-btn:focus {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

/* Contact Info Sidebar */
.contact-method {
  margin-bottom: 30px;
}

.contact-method:last-child {
  margin-bottom: 0;
}

.contact-method h3 {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-method h3 i {
  color: var(--primary);
  font-size: 1.3rem;
}

.contact-method p {
  color: var(--medium);
  margin-bottom: 12px;
  line-height: 1.6;
}

.contact-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 10px 0;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-phone:hover,
.contact-phone:focus {
  color: var(--primary);
  outline: none;
}

.contact-email {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-email:hover,
.contact-email:focus {
  color: var(--primary-dark);
  text-decoration: underline;
  outline: none;
}

/* Status Check Section */
.status-check {
  background: rgba(37, 211, 102, 0.05);
  padding: 25px;
  border-radius: 8px;
  margin-top: 40px;
  border-top: 3px solid var(--primary);
}

.status-check h3 {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.status-check p {
  color: var(--medium);
  margin-bottom: 20px;
}

.status-form {
  display: flex;
  gap: 10px;
}

.status-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
}

.status-form button {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 0 25px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-form button:hover,
.status-form button:focus {
  background-color: var(--primary-dark);
  outline: none;
}

.status-form button:focus {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .contact-form-container,
  .contact-info-sidebar {
    padding: 30px 20px;
  }
  
  .contact-header h1 {
    font-size: 2rem;
  }
  
  .status-form {
    flex-direction: column;
  }
  
  .status-form button {
    padding: 14px;
    margin-top: 10px;
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .branding {
    flex-direction: column;
  }

  .brand-name {
    font-size: 18px;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 8px;
  }

  .logo {
    max-width: 50px;
  }

  .whatsapp-button img {
    width: 40px;
    height: 40px;
  }

  .product-item {
    text-align: center;
  }

  .logo-marquee {
    overflow: hidden;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    padding: 10px 0;
  }

  .logo-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollLogosMobile 12s linear infinite;
  }

  .logo-track img {
    height: 25px;
    max-width: 50px;
    flex-shrink: 0;
  }

  @keyframes scrollLogosMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}

/* Form Message */
.form-message {
  max-width: 600px;
  margin: 20px auto 30px auto;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
  position: relative;
  z-index: 9999;
}

.form-message.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
}
.success-overlay {
  display: none; /* Hide initially */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7); /* semi-transparent black bg */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 1000;
  text-align: center;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.success-overlay svg {
  width: 80px;
  height: 80px;
  fill: #4CAF50; /* green color */
  margin-bottom: 20px;
}

.success-overlay h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.success-overlay p {
  font-size: 1.2rem;
}
.branding {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ensures text is aligned to left */
}
@media (max-width: 600px) {
  .branding {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .text-group {
    align-items: center;
  }
}
