﻿/* ===================================
   Form Layout + Controls
=================================== */
.form-shell {
  background-image: linear-gradient(rgba(246, 243, 238, 0.82), rgba(243, 239, 233, 0.82)), url("../images/mountain.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(31, 35, 39, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(10, 14, 18, 0.12);
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.form-shell p {
  margin-top: 0.7rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 1.1rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: #313840;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(31, 35, 39, 0.2);
  border-radius: 10px;
  background: #fdfcf9;
  color: #13181d;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 126px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #6d747a;
  box-shadow: 0 0 0 3px rgba(125, 132, 140, 0.2);
  outline: none;
}

.form-error {
  min-height: 1em;
  font-size: 0.8rem;
  color: #8f2e2e;
}

.form-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
}

.form-note {
  font-size: 0.8rem;
  color: #5b6269;
}

/* ===================================
   Success Overlay
=================================== */
.form-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 1700;
  background: rgba(10, 14, 18, 0.6);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1rem;
}

.form-success-overlay.open {
  opacity: 1;
  visibility: visible;
}

.form-success-card {
  width: min(500px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(23, 28, 33, 0.12);
  box-shadow: 0 18px 34px rgba(11, 14, 18, 0.2);
  padding: 1.2rem;
  text-align: center;
}

.form-success-card p {
  margin-top: 0.7rem;
}

.form-success-card .btn {
  margin-top: 1rem;
}

.form-success-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.form-success-actions .btn {
  margin-top: 0;
}

@media (max-width: 840px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-success-actions {
    flex-direction: column;
  }
}
