/* ===== CONTACT PAGE STYLES ===== */

/* ===== CONTACT HERO - Image-based, matches about/works pages ===== */
.contact-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.contact-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: contactHeroZoom 30s ease-out forwards;
  will-change: transform;
}

@keyframes contactHeroZoom {
  0%   { transform: scale(1.15) translateY(-1%); }
  100% { transform: scale(1) translateY(0); }
}

.contact-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(29, 10, 50, 0.25) 0%,
    rgba(45, 17, 73, 0.4) 25%,
    rgba(45, 17, 73, 0.65) 55%,
    rgba(29, 10, 50, 0.88) 85%,
    rgba(20, 5, 40, 0.96) 100%
  );
  z-index: 1;
}

.contact-hero__overlay::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 550px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact-hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h, 72px) + 4rem) 0 4rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-ar-regular);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

.contact-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-hero__breadcrumb a:hover { color: var(--clr-white); }

.contact-hero__breadcrumb svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.contact-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ff-ar-medium);
  font-size: 0.82rem;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 0.45rem 1.3rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(6px);
}

.contact-hero__badge svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.contact-hero__title {
  font-family: var(--ff-ar-bold);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--clr-white);
  margin-bottom: 1rem;
  line-height: 1.3;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.contact-hero__accent {
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-primary-light));
  margin: 0 auto 1.2rem;
}

.contact-hero__desc {
  font-family: var(--ff-ar-regular);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.contact-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem 2.5rem;
  backdrop-filter: blur(8px);
}

.contact-hero__stat { text-align: center; }

.contact-hero__stat-num {
  display: block;
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--clr-white);
  line-height: 1.2;
}

.contact-hero__stat-label {
  font-family: var(--ff-ar-regular);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.contact-hero__stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

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

/* Main Contact Section - Enhanced with Pattern Background */
.contact-main {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--clr-off-white) 0%, #faf8fc 100%);
  position: relative;
  overflow: hidden;
}

.contact-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 1px 1px,
      rgba(84, 33, 135, 0.05) 1px,
      transparent 0
    ),
    radial-gradient(
      circle at 20px 20px,
      rgba(168, 85, 247, 0.03) 1px,
      transparent 0
    );
  background-size:
    40px 40px,
    60px 60px;
  pointer-events: none;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      40px 40px,
      60px 60px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

/* Contact Form Card - Enhanced Glass Morphism */
.contact-form-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow:
    0 20px 60px rgba(84, 33, 135, 0.08),
    0 8px 16px rgba(84, 33, 135, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-form-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 25px 70px rgba(84, 33, 135, 0.12),
    0 10px 20px rgba(84, 33, 135, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.contact-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--clr-primary) 0%,
    var(--clr-accent) 100%
  );
}

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

.contact-form-title {
  font-family: var(--ff-ar-bold);
  font-size: var(--fs-xl);
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}

.contact-form-subtitle {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-sm);
  color: var(--clr-text);
  margin-bottom: 0.5rem;
}

.required {
  color: #ef4444;
}

.form-input-wrapper {
  position: relative;
}

.form-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-light);
  pointer-events: none;
  transition: color var(--transition), transform var(--transition);
  z-index: 1;
}

.form-icon--textarea {
  top: 1rem;
  transform: none;
}

/* RTL: icon on right → padding-right makes room for icon */
.form-input {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 1rem;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-sm);
  color: var(--clr-text);
  background: var(--clr-white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  will-change: transform, box-shadow;
}

.form-input:focus {
  border-color: var(--clr-primary);
  box-shadow:
    0 0 0 4px rgba(84, 33, 135, 0.1),
    0 4px 12px rgba(84, 33, 135, 0.08);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.98);
}

/* Use :focus-within so icon animates when input inside wrapper is focused */
.form-input-wrapper:focus-within .form-icon:not(.form-icon--textarea) {
  color: var(--clr-primary);
  transform: translateY(-50%) scale(1.1);
}

.form-input-wrapper:focus-within .form-icon--textarea {
  color: var(--clr-primary);
  transform: scale(1.1);
}

.form-input.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.03);
  animation: inputError 0.3s ease-in-out;
}

@keyframes inputError {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.form-input.success {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.03);
  animation: inputSuccess 0.5s ease-in-out;
}

@keyframes inputSuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b8a0cc' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  cursor: pointer;
}

/* LTR overrides */
html[dir="ltr"] .form-icon {
  right: auto;
  left: 1rem;
}

html[dir="ltr"] .form-icon--textarea {
  right: auto;
  left: 1rem;
  top: 1rem;
  transform: none;
}

html[dir="ltr"] .form-input {
  padding: 0.9rem 1rem 0.9rem 3rem;
}

html[dir="ltr"] .form-input-wrapper:focus-within .form-icon:not(.form-icon--textarea) {
  transform: translateY(-50%) scale(1.1);
}

html[dir="ltr"] .form-select {
  background-position: right 1rem center;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 1rem;
  line-height: 1.6;
}

.char-counter {
  text-align: left;
  font-size: var(--fs-xs);
  color: var(--clr-text-secondary);
  margin-top: 0.4rem;
  font-family: var(--ff-ar-medium);
  transition: color 0.3s ease;
}

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

.char-counter.danger {
  color: #ef4444;
  font-weight: bold;
}

.error-message {
  display: block;
  font-size: var(--fs-xs);
  color: #ef4444;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--ff-ar-medium);
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
  animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

/* Submit Button - Enhanced with Advanced Animations */
.submit-btn {
  width: 100%;
  padding: 1.1rem 2rem;
  border: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    var(--clr-primary) 0%,
    var(--clr-primary-light) 50%,
    var(--clr-accent) 100%
  );
  background-size: 200% 200%;
  color: var(--clr-white);
  font-family: var(--ff-ar-bold);
  font-size: var(--fs-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow:
    0 4px 20px rgba(84, 33, 135, 0.3),
    0 2px 8px rgba(84, 33, 135, 0.2);
  will-change: transform, box-shadow;
}

.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--clr-primary-light) 0%,
    var(--clr-accent) 50%,
    var(--clr-primary) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.submit-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  opacity: 0;
  transform: scale(0);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 35px rgba(84, 33, 135, 0.4),
    0 6px 15px rgba(84, 33, 135, 0.3);
  background-position: 100% 50%;
}

.submit-btn:hover::before {
  opacity: 1;
}

.submit-btn:hover::after {
  opacity: 1;
  transform: scale(1);
}

.submit-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.submit-btn__text,
.submit-btn__icon {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.submit-btn__loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--clr-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  position: relative;
  z-index: 1;
}

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

.submit-btn.loading .submit-btn__text,
.submit-btn.loading .submit-btn__icon {
  display: none;
}

.submit-btn.loading .submit-btn__loader {
  display: block;
}

.submit-btn:not(.loading):hover {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(-2px) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
  }
}

/* Form Messages - Enhanced with Advanced Animations */
.form-message {
  display: none;
  text-align: center;
  padding: 2.5rem;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-message.show {
  display: block;
  opacity: 1;
  transform: scale(1);
  animation: messageAppear 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes messageAppear {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(30px) rotate(-5deg);
  }
  50% {
    transform: scale(1.05) translateY(-5px) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

.form-message__icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconBounce 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
  position: relative;
}

.form-message__icon::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0% {
    transform: scale(0) rotate(-180deg);
  }
  50% {
    transform: scale(1.15) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.form-message--success .form-message__icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--clr-white);
}

.form-message--error .form-message__icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: var(--clr-white);
}

.form-message__title {
  font-family: var(--ff-ar-bold);
  font-size: var(--fs-xl);
  margin-bottom: 0.5rem;
}

.form-message--success .form-message__title {
  color: #10b981;
}

.form-message--error .form-message__title {
  color: #ef4444;
}

.form-message__text {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.form-message__btn {
  padding: 0.75rem 2rem;
  border: 2px solid var(--clr-primary);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--clr-primary);
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-message__btn:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(84, 33, 135, 0.3);
}

/* Contact Info Cards */
.contact-info-wrapper {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Contact Info Cards - Enhanced with Advanced Hover Effects */
.info-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(84, 33, 135, 0.05) 0%,
    rgba(168, 85, 247, 0.08) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.info-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.1) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.info-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 20px 50px rgba(84, 33, 135, 0.18),
    0 10px 25px rgba(84, 33, 135, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
}

.info-card:hover::before {
  opacity: 1;
}

.info-card:hover::after {
  width: 300px;
  height: 300px;
}

.info-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--clr-primary) 0%,
    var(--clr-primary-light) 50%,
    var(--clr-accent) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(84, 33, 135, 0.3);
}

.info-icon::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--clr-accent) 0%,
    var(--clr-primary) 100%
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.info-card:hover .info-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow:
    0 10px 30px rgba(84, 33, 135, 0.45),
    0 5px 15px rgba(84, 33, 135, 0.3);
}

.info-card:hover .info-icon::before {
  opacity: 1;
  animation: pulse 1.5s ease-in-out infinite;
}

.info-title {
  font-family: var(--ff-ar-bold);
  font-size: var(--fs-md);
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.info-value {
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-base);
  color: var(--clr-text);
  margin-bottom: 0.3rem;
  display: block;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.info-card:hover .info-value {
  color: var(--clr-primary);
}

.info-desc {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-xs);
  color: var(--clr-text-secondary);
  position: relative;
  z-index: 1;
}

/* Social Media Section - Enhanced with Glass Effect */
.social-section {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(84, 33, 135, 0.06);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(84, 33, 135, 0.1);
}

.social-title {
  font-family: var(--ff-ar-bold);
  font-size: var(--fs-md);
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--clr-white);
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-icon--twitter::before {
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.social-icon--instagram::before {
  background: linear-gradient(135deg, #e1306c 0%, #c13584 50%, #833ab4 100%);
}

.social-icon--linkedin::before {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.social-icon--facebook::before {
  background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.social-icon--whatsapp::before {
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.2) rotate(8deg);
  border-color: transparent;
  box-shadow:
    0 10px 30px rgba(84, 33, 135, 0.35),
    0 5px 15px rgba(84, 33, 135, 0.25);
}

.social-icon:hover::before {
  opacity: 1;
}

.social-icon svg {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.social-icon:hover svg {
  color: var(--clr-white);
  stroke: var(--clr-white);
  transform: scale(1.1);
}

/* Map Section */
.map-section {
  padding: 4rem 0 6rem;
  background: var(--clr-white);
}

.map-header {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.map-title {
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}

.map-subtitle {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-base);
  color: var(--clr-text-secondary);
}

/* Map Section - Enhanced with Advanced Hover Effects */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(84, 33, 135, 0.12),
    0 8px 24px rgba(84, 33, 135, 0.08);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.map-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent))
    border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.map-container:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 30px 80px rgba(84, 33, 135, 0.18),
    0 12px 32px rgba(84, 33, 135, 0.12);
}

.map-container:hover::before {
  opacity: 0.6;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 450px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-hero { min-height: auto; }
  .contact-hero__content { padding-top: calc(var(--nav-h, 72px) + 2rem); padding-bottom: 2.5rem; }
  .contact-hero__desc { font-size: 0.92rem; margin-bottom: 2rem; }
  .contact-hero__stats { gap: 1.5rem; padding: 1.2rem 1.5rem; }
  .contact-hero__stat-num { font-size: 1.3rem; }

  .contact-main {
    padding: 4rem 0;
  }

  .contact-form-card {
    padding: 2rem 1.5rem;
  }

  .contact-form-title {
    font-size: var(--fs-lg);
  }

  .info-card {
    padding: 1.5rem;
  }

  .map-container iframe {
    height: 350px;
  }

  .map-section {
    padding: 3rem 0 4rem;
  }
}

@media (max-width: 480px) {
  .contact-hero__content { padding-top: calc(var(--nav-h, 72px) + 1.2rem); padding-bottom: 2rem; }
  .contact-hero__breadcrumb { font-size: 0.72rem; margin-bottom: 1.2rem; }
  .contact-hero__badge { font-size: 0.72rem; padding: 0.35rem 0.9rem; margin-bottom: 0.8rem; }
  .contact-hero__title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .contact-hero__accent { width: 40px; margin-bottom: 0.8rem; }
  .contact-hero__desc { font-size: 0.85rem; line-height: 1.75; margin-bottom: 1.5rem; }
  .contact-hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 0.8rem; }
  .contact-hero__stat-sep { display: none; }
  .contact-hero__stat-num { font-size: 1.1rem; }
  .contact-hero__stat-label { font-size: 0.7rem; }

  .contact-form-card {
    padding: 1.5rem 1rem;
  }

  .form-input {
    padding: 0.8rem 2.8rem 0.8rem 0.8rem;
    font-size: var(--fs-xs);
  }

  html[dir="ltr"] .form-input {
    padding: 0.8rem 0.8rem 0.8rem 2.8rem;
  }

  .submit-btn {
    padding: 0.9rem 1.5rem;
    font-size: var(--fs-sm);
  }

  .social-icon {
    width: 42px;
    height: 42px;
  }

  .info-card {
    padding: 1.2rem 0.8rem;
  }

  .contact-form-title {
    font-size: var(--fs-md);
  }

  .form-icon {
    right: 0.6rem;
  }

  html[dir="ltr"] .form-icon {
    right: auto;
    left: 0.6rem;
  }

  .contact-hero__overlay::after {
    width: 250px;
    height: 140px;
  }

  .map-container iframe {
    height: 280px;
  }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Shake Animation for Form Validation Error */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-8px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(8px);
  }
}

.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* Ripple Effect for Buttons */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}
