/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}


body {
  background-color: #121212;
  color: #fff;
}

.default-page {
  background-color: #121212;
}

/* Highlight Color */
.highlight {
  color: #fff;
}

input::placeholder {
  color: #fff;
  opacity: 1;
}

input:focus {
  outline: none;
}

/* Hero Section */
.hero {
  background: url(../svg/KaasBG.svg) no-repeat center / cover;
  background-size: cover;
  background-position: center;
  color: white;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 120px;
  margin-top: -100px;
  position: relative;
  text-align: left;
  width: 100%;
}

/* Hero text opacity set to 95% in hero-content class */

.hero-content {
  max-width: 80vw;
  margin: 0 auto;
  opacity: 0.95; /* 95% visible */
}

/* Hero title and description styles moved to header-footer.css for consistency */

.floating-text {
  color: #FFB6C1;
  display: inline-block;
  animation: floatIn 2s ease-out forwards;
  /* Fix: Ensure animation doesn't affect layout */
  animation-fill-mode: both;
  will-change: transform, opacity;
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.contact-section {
  margin-bottom: 2rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  text-align: center;
}

.section-description {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Form Styling */
.contact-form {
  background: rgba(41, 41, 41, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
}

/* Form Group for Floating Labels */
.form-group {
  position: relative;
  margin-bottom: 0;
}

.form-label {
  position: absolute;
  left: 0.75rem;
  top: -0.5rem;
  font-size: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  color: #FFB6C1;
  font-weight: 400;
  transition: all 0.3s ease;
  pointer-events: none;
  background: rgba(41, 41, 41, 0.95);
  padding: 0 0.5rem;
  z-index: 1;
  opacity: 0;
  transform: translateY(0);
}

/* Input styling */
.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: all 0.3s ease;
}

/* Disable textarea resize */
textarea.form-input {
  resize: none;
}

/* Select styling */
.contact-form select {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: all 0.3s ease;
}

/* Show label only when input has content */
.form-input:not(:placeholder-shown) ~ .form-label,
.form-label.floating {
  opacity: 1;
}

/* Hide placeholder when input has content */
.form-input:not(:placeholder-shown) {
  /* Placeholder will be hidden automatically when content exists */
}

/* Ensure placeholder is visible */
.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

/* Focus states */
.form-input:focus,
.contact-form select:focus {
  outline: none;
  border-color: #FFB6C1;
  box-shadow: 0 0 0 2px rgba(255, 182, 193, 0.2);
}


/* Phone input group special styling */
.phone-number-group {
  flex: 1;
}

.lap-form-btm {
  margin-bottom: 1.5rem;
}

.phone-input {
  display: flex;
  gap: 10px;
}

.phone-input select {
  width: 80px;
}

/* Button Styling - Match Contact Us button */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
  border-radius: 30px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  border: 2px solid transparent !important;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: #fff !important;
  color: #333 !important;
  border: 2px solid transparent !important;
}

.btn-primary:hover {
  background-color: #f8f8f8 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Submit button specific - no arrow rotation */
.contact-form .btn-primary:hover img {
  transform: none !important;
}

.btn img {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

/* Align submit button to the right */
.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form .btn-primary {
  align-self: flex-end;
  margin-left: auto;
}

/* Disabled button state */
.contact-form .btn-primary:disabled {
  background: rgba(255, 255, 255, 0.3) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  box-shadow: none !important;
}

.contact-form .btn-primary:disabled img {
  opacity: 0.5 !important;
}

/* Ensure hover effects don't apply to disabled button */
.contact-form .btn-primary:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Contact Info */
.contact-info {
  padding: 2rem;
}

.contact-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
}

.contact-description {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item .icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.contact-detail h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: #FFB6C1;
  text-decoration: none;
  font-weight: 500;
}

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

.address {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.location {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 2rem 0 1rem 0;
}

/* Office Cards */
.offices-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.office-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.office-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

/* Fix: Reset state for office-card */
.office-card {
  transform: translateY(0);
  animation-fill-mode: none;
}

/* Fix: Prevent animations from breaking layout positioning */
.contact-container {
  position: relative;
  z-index: 1;
}

.contact-form {
  position: relative;
  /* Ensure form maintains proper positioning */
  transform: translateZ(0); /* Force hardware acceleration and create stacking context */
}

.section-title,
.section-description {
  position: relative;
  /* Prevent text from being displaced by animations */
}

/* Hero title positioning handled in header-footer.css */

/* Additional safety for form elements */
.form-group {
  position: relative;
  /* Ensure proper positioning context for floating labels */
}

.office-card .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 1rem;
}

.office-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.office-card .address {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.office-card .phone {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #FFB6C1;
}

/* Error Messages */
.error-message {
  color: #ff6b6b;
  font-size: 0.875rem;
  font-family: 'Space Grotesk', sans-serif;
  display: block;
  visibility: hidden;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 6px;
  border-left: 3px solid #ff6b6b;
}

.hidden {
  display: none;
}

/* Popup Styling */
#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#popup.hidden {
  display: none;
}

.popup-content {
  background: rgba(41, 41, 41, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
}

.popup-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  font-weight: 600;
}

.popup-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.support {
  font-weight: 500;
  color: #FFB6C1;
}

/* Social Icons */
.social-icons a {
  filter: brightness(0) invert(1);
}

.social-icons img {
  fill: #1E1E1E;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
  }
  
  /* Hero responsive styles handled in header-footer.css */
  
  .container {
    padding: 2rem 1rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 500px) {
  body {
    font-size: 14px;
    padding: 10px;
  }

  .hero {
    text-align: center;
    padding: 1.5rem 1rem;
  }
  
  .hero-title {
    font-size: 4rem;
    line-height: 1 !important;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form {
    width: 100%;
    padding: 1.5rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px;
    padding: 0.875rem;
  }

  .phone-input {
    display: flex;
    gap: 0.75rem;
  }

  .contact-info {
    text-align: center;
    padding: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .contact-description {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
  }

  .contact-item {
    margin: 1rem 0;
    padding: 1rem;
  }

  .office-card .address {
    font-size: 0.875rem;
    text-align: center;
  }
  
  .office-card h4 {
    font-size: 1.125rem;
    text-align: center;
  }
  
  .office-card .phone {
    font-size: 0.95rem;
    text-align: center;
  }

  .popup-content h2 {
    font-size: 1.5rem;
  }

  .popup-content p {
    font-size: 0.875rem;
  }

  .location {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 400px) {
  /* Hero responsive styles handled in header-footer.css */
  
  .section-title {
    font-size: 1.5rem;
  }
}