.contact-section {
  padding: 120px 5% 120px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
}

.contact-form {
  flex: 1;
  max-width: 600px;
}

  .contact-form h1 {
    margin-bottom: 48px;
  }

.contact-form h3 {
  color: var(--sage);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  text-align: center;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--sage);
  font-size: 1.3rem;
}

.contact-form .form-control {
  font-size: 1.5rem;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid var(--beige-soft);
  transition: all 0.3s ease;
  background: #fff;
}

.contact-form .form-control:focus {
  border-color: var(--sage);
  box-shadow: 0 0 10px rgba(74,124,89,0.25);
}

.contact-form textarea.form-control {
  min-height: 180px;
  resize: none;
}

.contact-form .btn {
  background: var(--sage);
  color: #fff;
  font-size: 1.6rem;
  padding: 12px 40px;
  border: none;
  border-radius: 18px;
  display: block;
  margin: 15px auto 0;
  transition: all 0.35s ease;
  box-shadow: var(--shadow-soft);
}

.contact-form .btn:hover {
  background: var(--sage-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

button:disabled,
button[disabled],
.contact-form .btn:disabled,
.contact-form .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.required-star {
    color: #d9534f;
    margin-left: 4px;
    font-weight: bold;
}

.contact-card {
  background: var(--sage);
  color: #fff;
  padding: 40px 35px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.25);
  flex: 0 0 350px;
  margin-top: 130px;
  text-align: left;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: cardFadeUp 0.8s ease-out forwards;
}

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

.contact-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255,255,255,0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

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

.contact-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-medium);
  border-color: rgba(255,255,255,0.45);
}

.contact-card:hover i.fa {
  transform: translateX(4px);
  transition: transform 0.3s ease;
}

.contact-card h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--beige);
  font-weight: 600;
}

.contact-card hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.25);
  margin: 15px 0 25px;
}

.contact-card p {
  display: flex;
  align-items: center;
  margin: 18px 0;
  font-size: 1.4rem;
  color: var(--beige-soft);
  font-weight: 500;
}

.contact-card i.fa {
  margin-right: 12px;
  font-size: 1.7rem;
  width: 28px;
  color: var(--beige);
  transition: transform 0.3s ease;
}

@media (max-width: 767px) {
  .contact-section {
    flex-direction: column;
    align-items: center;
    padding: 120px 20px 80px;
    gap: 60px;
  }

  .contact-card {
    margin-top: 45px;
    max-width: 420px;
    width: 100%;
  }

.address-value {
    display: inline-block;
    vertical-align: top;
    margin-left: 4px;
    max-width: calc(100% - 110px); 
    line-height: 1.4;
    word-break: break-word;
}

  .contact-form .btn {
    margin-top: 25px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {

  .contact-section {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: left !important;
    width: 100% !important;
    padding: 120px 40px !important;
    gap: 60px !important;
  }

  .contact-form,
  .contact-card {
    width: 100% !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .contact-card {
    margin-top: 60px !important;
  }
}
