/* ============================================
   SWITCHCORNER CONTACT PAGE STYLES
   ============================================ */

/* --- Hero Section --- */
.contact-hero {
  position: relative;
  padding: 42px 0 84px;
  background: #fff;
  overflow: hidden;
}

.contact-hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: #f8f9fa;
  transform: skewY(-2deg);
}

.contact-hero .container {
  position: relative;
  z-index: 2;
}

.contact-hero-content {
  text-align: center;
  color: #303539;
  animation: fadeInUp 0.6s ease-out;
}

.contact-hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #303539;
}

.contact-hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.contact-breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.contact-breadcrumb a {
  color: #303539;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-breadcrumb a:hover {
  color: #AB801C;
}

.contact-breadcrumb span {
  color: #303539;
}

.contact-breadcrumb .current {
  color: #303539;
}

/* --- Contact Info Cards --- */
.contact-info-section {
  padding: 60px 0 40px;
  background: #f8f9fa;
  margin-top: -30px;
  position: relative;
  z-index: 3;
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #AB801C, #8a6616);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(171, 128, 28, 0.2);
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fdf8f0 0%, #f9f0e0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
}

.contact-card:hover .contact-card-icon {
  background: linear-gradient(135deg, #AB801C 0%, #8a6616 100%);
  transform: scale(1.1) rotate(5deg);
}

.contact-card-icon svg {
  width: 36px;
  height: 36px;
  fill: #AB801C;
  transition: fill 0.4s ease;
}

.contact-card:hover .contact-card-icon svg {
  fill: #fff;
}

.contact-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0e1534;
  margin-bottom: 0.75rem;
}

.contact-card-text {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  min-height: 40px;
}

.contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0e1534;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.contact-card-link:hover {
  color: #AB801C;
}

.contact-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.contact-card-link:hover svg {
  transform: translateX(4px);
}

/* Secondary links */
.contact-card-secondary {
  display: block;
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card-secondary:hover {
  color: #AB801C;
}

/* --- Form Section --- */
.contact-form-section {
  padding: 60px 0;
  background: #fff;
}

.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

/* Left Side - Info */
.contact-form-info {
  padding: 2.5rem;
  background: linear-gradient(135deg, #0e1534 0%, #1a2850 100%);
  border-radius: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact-form-info::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(171, 128, 28, 0.1) 0%, transparent 50%);
  animation: pulse-bg 6s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.contact-form-info-content {
  position: relative;
  z-index: 2;
}

.contact-form-info h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.contact-form-info p {
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-list li:last-child {
  border-bottom: none;
}

.contact-info-list .info-icon {
  width: 44px;
  height: 44px;
      background: #ffffff24;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-list .info-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.contact-info-list .info-content {
  flex: 1;
}

.contact-info-list .info-label {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.contact-info-list .info-value {
  font-weight: 600;
  font-size: 1rem;
}

.contact-info-list .info-value a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-list .info-value a:hover {
  color: #AB801C;
}

/* Social Links */
.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-social a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-social a:hover {
  background: #AB801C;
  transform: translateY(-4px);
}

.contact-social a svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Right Side - Form */
.contact-form-box {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.contact-form-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0e1534;
  margin-bottom: 0.5rem;
}

.contact-form-box .form-subtitle {
  color: #6c757d;
  margin-bottom: 2rem;
}

/* Form Fields */
.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  font-weight: 600;
  color: #0e1534;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.contact-form .form-control {
  height: 52px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.contact-form .form-control:focus {
  border-color: #AB801C;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(171, 128, 28, 0.1);
}

.contact-form textarea.form-control {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.contact-form .form-control::placeholder {
  color: #adb5bd;
}

/* Phone Dial Code Input Group */
.contact-form .phone-input-group {
  display: flex;
  align-items: stretch;
}

.contact-form .phone-dial-select {
  flex: 0 0 auto;
  width: auto;
  min-width: 100px;
  max-width: 130px;
  border-right: none !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  font-size: 0.85rem !important;
  padding-left: 0.5rem !important;
  padding-right: 0.25rem !important;
  height: 52px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-form .phone-input-group .form-control {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: 1px solid #dee2e6 !important;
}

.contact-form .phone-dial-select:focus {
  z-index: 3;
  border-color: #AB801C !important;
  box-shadow: 0 0 0 4px rgba(171, 128, 28, 0.1) !important;
  outline: none;
}

/* Submit Button */
.btn-contact-submit {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #AB801C 0%, #8a6616 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-contact-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-contact-submit:hover::before {
  left: 100%;
}

.btn-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(171, 128, 28, 0.4);
}

.btn-contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-contact-submit svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-contact-submit:hover svg {
  transform: translateX(4px);
}

/* Result Message */
#result-contact {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
}

#result-contact:empty {
  display: none;
}

#result-contact.success {
  background: #d4edda;
  color: #155724;
}

#result-contact.error {
  background: #f8d7da;
  color: #721c24;
}

/* --- Map Section --- */
.contact-map-section {
  position: relative;
}

.contact-map-section iframe {
  width: 100%;
  height: 400px;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.contact-map-section:hover iframe {
  filter: grayscale(0%);
}

/* Map Overlay Card */
.map-overlay-card {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 1.25rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.map-overlay-card .map-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #AB801C 0%, #8a6616 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-overlay-card .map-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.map-overlay-card .map-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0e1534;
  margin-bottom: 0.25rem;
}

.map-overlay-card .map-text p {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}

.map-overlay-card .btn-directions {
  background: #0e1534;
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.map-overlay-card .btn-directions:hover {
  background: #AB801C;
  color: #fff;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation Classes */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-up.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-right.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .contact-hero {
    padding: 32px 0 60px;
  }

  .contact-hero-title {
    font-size: 2rem;
  }

  .contact-form-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-info {
    order: 2;
  }

  .contact-form-box {
    order: 1;
  }

  .map-overlay-card {
    width: 90%;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .contact-hero-title {
    font-size: 1.75rem;
  }

  .contact-hero-subtitle {
    font-size: 1rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-form-info,
  .contact-form-box {
    padding: 1.5rem;
  }

  .contact-form-box h3 {
    font-size: 1.25rem;
  }

  .map-overlay-card {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: -40px 1rem 1rem;
    flex-direction: column;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .contact-card-icon,
  .animate-fade-up,
  .animate-fade-left,
  .animate-fade-right,
  .btn-contact-submit {
    transition: none !important;
    animation: none !important;
  }
  
  .animate-fade-up,
  .animate-fade-left,
  .animate-fade-right {
    opacity: 1;
    transform: none;
  }
}
