/* ========================================
   CONTACT PAGE STYLES
   Modern, professional SaaS design
   ======================================== */

/* ----------------------------------------
   CONTACT HERO SECTION
   ---------------------------------------- */
.contact-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(135deg, #f8fafa 0%, #fff 50%, #f0f9f9 100%);
  text-align: center;
}

.contact-hero-content {
  max-width: 640px;
  margin: 0 auto;
}

.contact-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
  margin: 1rem 0 1.25rem;
  letter-spacing: -0.02em;
}

.title-highlight {
  color: var(--color-primary);
}

.contact-hero-description {
  font-size: 1.1875rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 3rem 0 2rem;
  }

  .contact-hero-title {
    font-size: 2rem;
  }

  .contact-hero-description {
    font-size: 1.0625rem;
  }
}

/* ----------------------------------------
   SECTION COMPONENTS
   ---------------------------------------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(35, 118, 124, 0.1);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin: 1rem 0 0.75rem;
  line-height: 1.25;
}

.section-description {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 2rem;
  }

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

/* ----------------------------------------
   MAIN CONTACT SECTION
   ---------------------------------------- */
.contact-main-section {
  padding: 3rem 0 5rem;
}

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

@media (max-width: 991.98px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ----------------------------------------
   CONTACT INFO COLUMN
   ---------------------------------------- */
.contact-info-column {
  position: sticky;
  top: 100px;
}

@media (max-width: 991.98px) {
  .contact-info-column {
    position: static;
  }
}

.contact-info-header {
  margin-bottom: 2rem;
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
}

.contact-info-subtitle {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Contact Methods */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.contact-method:hover {
  border-color: rgba(35, 118, 124, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

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

.contact-method-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.375rem;
}

.contact-method-content a {
  display: inline-block;
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.contact-method-content a:hover {
  color: #1c5f64;
  text-decoration: underline;
}

.contact-method-content p,
.contact-method-content address {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  font-style: normal;
}

.hours-primary {
  color: #374151 !important;
  font-weight: 500;
}

.hours-secondary {
  color: #9ca3af !important;
}

/* Social Links */
.contact-social {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-social h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 10px;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ----------------------------------------
   CONTACT FORM COLUMN
   ---------------------------------------- */
.contact-form-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

@media (max-width: 575.98px) {
  .contact-form-card {
    padding: 1.5rem;
    border-radius: 12px;
  }
}

.contact-form-header {
  margin-bottom: 2rem;
}

.contact-form-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
}

.contact-form-header p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

/* Form Alerts */
.form-alert {
  display: none;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.form-alert.show {
  display: flex;
}

.form-alert-success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-alert-success .alert-icon {
  color: #16a34a;
}

.form-alert-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-alert-error .alert-icon {
  color: #dc2626;
}

.alert-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.alert-content strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.alert-content p {
  font-size: 0.9375rem;
  color: #4b5563;
  margin: 0;
}

/* Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

/* Form Labels */
.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.required {
  color: #dc2626;
}

.optional {
  font-weight: 400;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Form Inputs */
.form-input {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #111827;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input:hover {
  border-color: #d1d5db;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(35, 118, 124, 0.1);
}

/* Select Input */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.875rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem 1.25rem;
  padding-right: 2.75rem;
  cursor: pointer;
}

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.char-counter {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-left: auto;
}

.char-counter.warning {
  color: #d97706;
}

.char-counter.danger {
  color: #dc2626;
}

/* Form Error State */
.form-error {
  display: none;
  font-size: 0.8125rem;
  color: #dc2626;
  margin-top: 0.375rem;
}

.form-group.has-error .form-input {
  border-color: #dc2626;
  background: rgba(239, 68, 68, 0.02);
}

.form-group.has-error .form-input:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.has-error .form-error {
  display: block;
}

.textarea-footer .form-error {
  margin-top: 0;
}

/* reCAPTCHA Container */
.recaptcha-container {
  margin-bottom: 1.5rem;
}

.recaptcha-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  border-radius: 10px;
  color: #9ca3af;
  font-size: 0.875rem;
}

.recaptcha-placeholder i {
  font-size: 1.25rem;
  color: #6b7280;
}

/* Submit Button */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
  background: #1c5f64;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(35, 118, 124, 0.3);
}

.btn-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(35, 118, 124, 0.3);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: none;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
  display: none;
}

.btn-submit.loading .btn-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----------------------------------------
   QUICK CONTACT SECTION
   ---------------------------------------- */
.quick-contact-section {
  padding: 5rem 0;
  background: #f9fafb;
}

.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 991.98px) {
  .quick-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .quick-contact-grid {
    grid-template-columns: 1fr;
  }
}

.quick-contact-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.quick-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.quick-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(35, 118, 124, 0.1);
  color: var(--color-primary);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.quick-contact-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.75rem;
}

.quick-contact-card p {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.quick-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-contact-link:hover {
  color: #1c5f64;
  gap: 0.625rem;
}

/* ----------------------------------------
   MAP SECTION
   ---------------------------------------- */
.map-section {
  padding: 0 0 5rem;
  background: #f9fafb;
}

.map-container {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 575.98px) {
  .map-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.map-header-content h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem;
}

.map-header-content h3 i {
  color: var(--color-primary);
}

.map-header-content p {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(35, 118, 124, 0.08);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-directions:hover {
  background: rgba(35, 118, 124, 0.15);
  color: #1c5f64;
}

.map-embed {
  height: 400px;
  background: #f3f4f6;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.75rem;
  color: #9ca3af;
}

.map-placeholder i {
  font-size: 3rem;
  opacity: 0.5;
}

.map-placeholder p {
  font-size: 1rem;
  margin: 0;
}

.map-address {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* ----------------------------------------
   CTA SECTION
   ---------------------------------------- */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1c5f64 100%);
  text-align: center;
}

.cta-content {
  max-width: 560px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.cta-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0 0 2rem;
}

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

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.75rem;
  background: #fff;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: var(--color-primary);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.75rem;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 3.5rem 0;
  }

  .cta-title {
    font-size: 1.625rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta-primary,
  .btn-cta-outline {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ----------------------------------------
   ANIMATIONS
   ---------------------------------------- */
.animate-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations */
.contact-methods .contact-method:nth-child(1) {
  transition-delay: 0s;
}
.contact-methods .contact-method:nth-child(2) {
  transition-delay: 0.1s;
}
.contact-methods .contact-method:nth-child(3) {
  transition-delay: 0.2s;
}
.contact-methods .contact-method:nth-child(4) {
  transition-delay: 0.3s;
}

.quick-contact-grid .quick-contact-card:nth-child(1) {
  transition-delay: 0s;
}
.quick-contact-grid .quick-contact-card:nth-child(2) {
  transition-delay: 0.1s;
}
.quick-contact-grid .quick-contact-card:nth-child(3) {
  transition-delay: 0.2s;
}
