/* ===== CONTACT PAGE - PROFESSIONAL DESIGN ===== */

:root {
  --contact-primary: #1a365d;
  --contact-secondary: #2d3748;
  --contact-accent: #3182ce;
  --contact-success: #48bb78;
  --contact-light: #f7fafc;
  --contact-border: #e2e8f0;
  --contact-shadow: rgba(0, 0, 0, 0.1);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(26, 54, 93, 0.03) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.contact-section::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(49, 130, 206, 0.03) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* ===== CONTACT INFO CARDS ===== */
.contact-info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--contact-primary) 0%,
    var(--contact-accent) 100%
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: var(--contact-border);
}

.contact-info-card:hover::before {
  transform: scaleX(1);
}

.contact-info-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--contact-primary) 0%,
    var(--contact-accent) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.contact-info-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-card:hover .contact-info-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(26, 54, 93, 0.3);
}

.contact-info-card:hover .contact-info-icon::before {
  transform: scale(1);
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--contact-primary);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.contact-info-card:hover .contact-info-title {
  color: var(--contact-accent);
}

.contact-info-text {
  font-size: 1rem;
  color: var(--contact-secondary);
  line-height: 1.8;
  margin: 0;
}

.contact-info-text a {
  color: var(--contact-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.contact-info-text a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--contact-accent);
  transition: width 0.3s ease;
}

.contact-info-text a:hover {
  color: var(--contact-accent);
}

.contact-info-text a:hover::after {
  width: 100%;
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
  background: #ffffff;
  border-radius: 24px;
  padding: 3rem;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  border: 2px solid var(--contact-border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

.contact-form-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--contact-border);
}

.contact-form-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--contact-primary);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.contact-form-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--contact-accent);
  border-radius: 2px;
}

.contact-form-subtitle {
  font-size: 1rem;
  color: #718096;
  line-height: 1.6;
  margin: 0;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--contact-primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.contact-form .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--contact-secondary);
  background-color: var(--contact-light);
  border: 2px solid var(--contact-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  outline: none;
}

.contact-form .form-control:hover {
  border-color: #cbd5e0;
  background-color: #fff;
}

.contact-form .form-control:focus {
  border-color: var(--contact-accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
}

.contact-form .form-control::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231a365d' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Submit Button */
.btn-contact-submit {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    var(--contact-primary) 0%,
    var(--contact-accent) 100%
  );
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-contact-submit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 54, 93, 0.3);
}

.btn-contact-submit:hover::before {
  width: 300px;
  height: 300px;
}

.btn-contact-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.2);
}

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

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

/* ===== MAP & SOCIAL SECTION ===== */
.contact-map-wrapper {
  position: relative;
}

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

.contact-map-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--contact-primary);
  margin-bottom: 0.75rem;
}

.contact-map-subtitle {
  font-size: 1rem;
  color: #718096;
  line-height: 1.6;
  margin: 0;
}

.contact-map {
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.contact-map:hover {
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Social Media */
.contact-social {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
  border: 2px solid var(--contact-border);
}

.contact-social-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--contact-primary);
  margin-bottom: 1.25rem;
  text-align: center;
}

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

.contact-social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--contact-light);
  color: var(--contact-primary);
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.contact-social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--contact-primary) 0%,
    var(--contact-accent) 100%
  );
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.contact-social-link i {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.contact-social-link:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(26, 54, 93, 0.2);
}

.contact-social-link:hover::before {
  transform: scale(1);
}

.contact-social-link:hover i {
  color: #ffffff;
}

/* Business Hours */
.contact-hours {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
  border: 2px solid var(--contact-border);
}

.contact-hours-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--contact-primary);
  margin-bottom: 1.25rem;
  text-align: center;
}

.contact-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--contact-border);
  transition: all 0.3s ease;
}

.contact-hours-list li:last-child {
  border-bottom: none;
}

.contact-hours-list li:hover {
  padding-left: 0.5rem;
  background: var(--contact-light);
  border-radius: 8px;
}

.contact-hours-list .day {
  font-weight: 600;
  color: var(--contact-primary);
}

.contact-hours-list .time {
  font-weight: 500;
  color: var(--contact-accent);
}

/* Form Validation States */
.contact-form .form-control.is-invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1);
}

.contact-form .form-control.is-valid {
  border-color: var(--contact-success);
  box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.1);
}

/* Success Message */
.contact-form-success {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
  margin-bottom: 1.5rem;
  display: none;
  animation: slideInDown 0.5s ease;
}

.contact-form-success.show {
  display: block;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
  .contact-section {
    padding: 3rem 0;
  }

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

  .contact-form-title,
  .contact-map-title {
    font-size: 1.75rem;
  }

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

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

  .contact-form-wrapper {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .contact-form-title,
  .contact-map-title {
    font-size: 1.5rem;
  }

  .contact-info-card {
    padding: 1.5rem;
  }

  .contact-info-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .contact-social-links {
    gap: 0.75rem;
  }

  .contact-social-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .btn-contact-submit {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .contact-form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .contact-social,
  .contact-hours {
    padding: 1.5rem;
  }

  .contact-hours-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
