/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-page {
  display: flex;
  justify-content: center;
  min-height: 80vh;
  padding: 160px 20px 100px;
  background-color: var(--bg-cream);
}

.header-spacer {
  visibility: hidden;
  pointer-events: none;
}

.contact-box {
  width: 100%;
  max-width: 800px;
  padding: 50px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.contact-box h1 {
  margin-bottom: 10px;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 45px;
  font-weight: 500;
  text-align: center;
}

.contact-box > p {
  margin-bottom: 40px;
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #dcd7cb;
  border-radius: 5px;
  outline: none;
  background-color: #faf9f6;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 15px;
  transition:
    border-color 0.3s,
    background-color 0.3s;
}

.form-control:focus {
  border-color: var(--accent-red);
  background-color: #ffffff;
}

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

.submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 18px;
  font-size: 18px;
}

/* ==========================================================================
   Success modal
   ========================================================================== */

.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content-success {
  position: relative;
  width: 90%;
  max-width: 400px;
  padding: 40px 30px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.modal-content-success h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333333;
}

.modal-content-success p {
  color: #666666;
  font-size: 15px;
  line-height: 1.5;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #aaaaaa;
  cursor: pointer;
  font-size: 28px;
  font-weight: 700;
}

.close-btn:hover {
  color: #333333;
}

.checkmark-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: #4caf50;
}

.checkmark {
  width: 20px;
  height: 35px;
  margin-bottom: 5px;
  border: solid #ffffff;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.success-modal-button {
  width: 150px;
  margin: 20px auto 0;
}

/* ==========================================================================
   Contact responsive rules
   ========================================================================== */

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-box {
    padding: 30px 20px;
  }

  .contact-box h1 {
    font-size: 35px;
  }
}
