:root {
  --primary-color: #f97316;
  --secondary-color: #1e293b;
  --bg-light: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background: #fff;
}

.hero-section {
  background: linear-gradient(rgba(30, 41, 59, 0.85), rgba(30, 41, 59, 0.85)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80&w=1920');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 20px;
  text-align: center;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-section .subtitle {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.content-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}

.form-group {
  min-width: 0;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

textarea.form-control::-webkit-scrollbar {
  display: none;
}

.btn-submit {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s, background 0.2s;
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  background: #ea580c;
}

.btn-reset {
  background: #f1f5f9;
  color: var(--text-muted);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
  display: none;
  margin-top: 12px;
}

.btn-reset:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.form-status {
  margin-top: 12px;
  color: #b91c1c;
  font-size: 0.9rem;
  line-height: 1.45;
}

.info-sidebar h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--secondary-color);
}

.contact-method {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

#phone-section[hidden] {
  display: none;
}

.contact-method .icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-method h4 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.contact-method p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Success Animation Styles */ .success-message {
  display: none;
  text-align: center;
  padding: 60px 20px;
  animation: successReveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes successReveal {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  font-size: 5rem;
  color: #10b981;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 20px);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* On responsive layouts, show Contact Information before the form. */ .info-sidebar {
    order: 1;
  }
  .contact-form-section {
    order: 2;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group {
    margin-bottom: 16px;
  }
  .hero-section {
    padding: 80px 20px;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-section .subtitle {
    font-size: 0.9rem;
  }
  .content-container {
    padding: 60px 20px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 60px 20px;
  }
  .hero-section h1 {
    font-size: 1.5rem;
  }
  .content-container {
    padding: 40px 16px;
  }
  .form-group {
    margin-bottom: 18px;
  }
  .contact-method {
    gap: 16px;
    margin-bottom: 24px;
  }
  .contact-method .icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .contact-method h4 {
    font-size: 1rem;
  }
  .btn-submit {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
}

/* Global Page Loader */ .page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--bg-light);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader-text {
  margin-top: 20px;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 500;
}
