/* ==========================================================================
   Contact Us Page Styles - Acarya Global
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Inner Page Banner / Hero Section
   -------------------------------------------------------------------------- */
@keyframes heroBgPanZoom {
  0% {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.14) translate3d(-1.5%, -1%, 0);
  }
  100% {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
}

@keyframes heroCategoryDrop {
  0% {
    opacity: 0;
    transform: translate3d(0, -22px, 0);
    letter-spacing: 3.8px;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    letter-spacing: 2.5px;
  }
}

@keyframes heroHeadingSlideUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 36px, 0) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroSubheadingFadeIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.page-title-area {
  position: relative;
  background-color: #000000;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
  z-index: 1;
}

/* Background image & Gentle Ken Burns Zoom Animation */
.page-title-bg {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-image: url('../../assets/images/hero/page-title-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #000000;
  animation: heroBgPanZoom 18s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 1;
}

/* Black overlay blending */
.page-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2;
  pointer-events: none;
}

.page-title-content {
  text-align: center;
  position: relative;
  z-index: 3;
}

.page-title-content .page-category {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--dt-pri-color, #00a0e8);
  margin-bottom: 0.75rem;
  animation: heroCategoryDrop 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.page-title-content .page-category:hover {
  letter-spacing: 3.2px;
  color: #38bdf8;
  text-shadow: 0 0 16px rgba(0, 160, 232, 0.5);
  transform: translateY(-1px);
}

.page-title-content .page-main-heading {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-white, #ffffff);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  animation: heroHeadingSlideUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease;
  cursor: default;
}

.page-title-content .page-main-heading:hover {
  transform: translateY(-2px);
  text-shadow: 0 6px 28px rgba(0, 160, 232, 0.35);
}

.page-title-content .page-subheading {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.84);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
  animation: heroSubheadingFadeIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  transition: color 0.3s ease;
}

.page-title-content .page-subheading:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   1. Contact Form Section (Centered, Clean Enterprise Consultation Card)
   -------------------------------------------------------------------------- */
.contact-form-section {
  padding: 5.5rem 0 6rem;
  background-color: #f8fafc;
  position: relative;
}

.contact-form-wrapper {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--dt-pri-color, #00a0e8);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  padding: 3.5rem 3.5rem 3.25rem;
  transition: box-shadow 0.3s ease;
}

.contact-form-wrapper:hover {
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.09);
}

.contact-form-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.contact-form-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dt-pri-color, #00a0e8);
  margin-bottom: 0.5rem;
}

.contact-form-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.contact-form-subtitle {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

.contact-form-subtitle strong {
  color: #1e293b;
  font-weight: 600;
}

/* Form Grid Layout */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.45rem;
  display: block;
}

.required-mark {
  color: #ef4444;
  margin-left: 3px;
  font-weight: 700;
}

.optional-mark {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #94a3b8;
}

.input-control {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #0f172a;
  transition: all 0.25s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #94a3b8;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--dt-pri-color, #00a0e8);
  box-shadow: 0 0 0 4px rgba(0, 160, 232, 0.12);
}

/* Custom Select Dropdown */
.select-control {
  position: relative;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 1.1rem;
  color: #64748b;
  font-size: 0.8125rem;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.form-select:focus + .select-arrow {
  transform: rotate(180deg);
  color: var(--dt-pri-color, #00a0e8);
}

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

.textarea-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 0.35rem;
  gap: 1rem;
}

.char-counter {
  font-size: 0.8125rem;
  color: #94a3b8;
  white-space: nowrap;
  margin-left: auto;
}

/* Error States */
.form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.35rem;
  display: none;
  font-weight: 500;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: #ef4444;
  background-color: #fffaf9;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.form-group.has-error .form-error {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-group.is-valid .form-input,
.form-group.is-valid .form-select,
.form-group.is-valid .form-textarea {
  border-color: #10b981;
}

/* Submit Button & Actions */
.form-actions {
  margin-top: 0.75rem;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.05rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 160, 232, 0.28);
}

.contact-submit-btn i {
  transition: transform 0.3s ease;
}

.contact-submit-btn:hover i {
  transform: translateX(4px);
}

/* Status Notifications */
.form-status {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.status-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #166534;
  animation: statusFadeIn 0.4s ease;
}

.status-success i {
  font-size: 1.5rem;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.status-success h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #14532d;
  margin: 0 0 0.25rem;
}

.status-success p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #166534;
  margin: 0;
}

.status-fallback-link {
  color: var(--dt-pri-color, #00a0e8);
  font-weight: 600;
  text-decoration: underline;
}

.status-fallback-link:hover {
  color: #0284c7;
}

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

/* --------------------------------------------------------------------------
   Scroll Reveal Animations & Kinetic Transitions
   THEME: Precision 3D Unfold, Ambient Elevation & Staggered Cascade
   -------------------------------------------------------------------------- */
.contact-form-section .contact-form-header,
.contact-form-section .contact-form-wrapper,
.contact-form-section .form-group,
.contact-form-section .form-actions {
  opacity: 0;
  will-change: transform, opacity;
}

/* Header Slide & Reveal */
.contact-form-section.is-in-view .contact-form-header {
  animation: contactHeaderSlide 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* Card 3D Perspective Elevation & Unfold */
.contact-form-section.is-in-view .contact-form-wrapper {
  animation: contactCardFloatIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

/* Staggered Field Waves */
.contact-form-section.is-in-view #group-firstName {
  animation: contactFieldRiseLeft 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}

.contact-form-section.is-in-view #group-lastName {
  animation: contactFieldRiseRight 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.contact-form-section.is-in-view #group-phone {
  animation: contactFieldRiseLeft 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.46s both;
}

.contact-form-section.is-in-view #group-email {
  animation: contactFieldRiseRight 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

.contact-form-section.is-in-view #group-company {
  animation: contactFieldRiseLeft 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both;
}

.contact-form-section.is-in-view #group-service {
  animation: contactFieldRiseRight 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.64s both;
}

.contact-form-section.is-in-view #group-message {
  animation: contactFieldRiseUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.contact-form-section.is-in-view .form-actions {
  animation: contactBtnSpringPop 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.78s both;
}

/* Keyframes */
@keyframes contactHeaderSlide {
  0% {
    opacity: 0;
    transform: translate3d(0, -28px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes contactCardFloatIn {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateX(7deg) translate3d(0, 48px, 0) scale(0.96);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translate3d(0, 0, 0) scale(1);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  }
}

@keyframes contactFieldRiseLeft {
  0% {
    opacity: 0;
    transform: translate3d(-18px, 20px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes contactFieldRiseRight {
  0% {
    opacity: 0;
    transform: translate3d(18px, 20px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes contactFieldRiseUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes contactBtnSpringPop {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.92);
  }
  65% {
    opacity: 1;
    transform: translate3d(0, -3px, 0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form-section .contact-form-header,
  .contact-form-section .contact-form-wrapper,
  .contact-form-section .form-group,
  .contact-form-section .form-actions {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .page-title-content .page-main-heading {
    font-size: 2.25rem;
  }
  .contact-form-wrapper {
    padding: 3rem 2.5rem 2.75rem;
  }
  .contact-form-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .page-title-area {
    padding: 3.5rem 0 3rem;
  }
  .page-title-content .page-main-heading {
    font-size: 1.875rem;
  }
  .page-title-content .page-subheading {
    font-size: 0.9375rem;
  }
  .contact-form-section {
    padding: 3.5rem 0 4rem;
  }
  .contact-form-wrapper {
    padding: 2.25rem 1.35rem 2rem;
    border-radius: 12px;
  }
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .contact-form-title {
    font-size: 1.75rem;
  }
  .contact-submit-btn {
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
  }
}
