@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Jost:wght@300;400;500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Jost', sans-serif;
  background: #e8e0d4;
}

.form-page {
  background: #e8e0d4;
  min-height: 100vh;
  padding: 60px 40px;
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.form-left {
  flex: 0 0 280px;
  padding-top: 8px;
  position: sticky;
  top: 60px;
}

.form-left h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 400;
  color: #2c2825;
  line-height: 1.1;
  margin: 0 0 32px;
}

.form-left h3 {
  font-size: 13px;
  font-weight: 500;
  color: #2c2825;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.form-left p {
  font-size: 14px;
  color: #5a5248;
  line-height: 1.7;
}

.form-right { flex: 1; }

.section-divider {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: #2c2825;
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid #a89e93;
}

.section-divider:first-child { margin-top: 0; }

.section-note {
  font-size: 12px;
  color: #8a7e74;
  font-style: italic;
  margin-bottom: 16px;
  margin-top: 4px;
}

.field-label {
  font-size: 13px;
  font-weight: 400;
  color: #2c2825;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-label span { font-size: 12px; color: #8a7e74; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.field-group { margin-bottom: 16px; }

input[type=text],
input[type=email],
input[type=tel],
select,
textarea {
  width: 100%;
  background: #d6cbbc;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #2c2825;
  outline: none;
  transition: background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: #9a8e83; }
input:focus, select:focus, textarea:focus { background: #ccc1b0; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5248' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea {
  resize: none;
  height: 100px;
  line-height: 1.6;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #d6cbbc;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 13px;
  color: #2c2825;
}

.checkbox-item:hover { background: #ccc1b0; }

.checkbox-item input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: #2c2825;
  flex-shrink: 0;
  padding: 0;
  background: none;
}

.file-drop {
  background: #d6cbbc;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  border: 1.5px dashed #a89e93;
}

.file-drop:hover { background: #ccc1b0; }
.file-drop p { font-size: 13px; color: #5a5248; margin: 4px 0 0; }
.file-icon { font-size: 22px; margin-bottom: 6px; }
.file-name { font-size: 13px; color: #2c2825; font-weight: 500; }

.submit-btn {
  background: #2c2825;
  color: #e8e0d4;
  border: none;
  border-radius: 50px;
  padding: 16px 48px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover { background: #3e3530; }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { background: #a89e93; cursor: not-allowed; }

#statusMsg {
  font-size: 13px;
  color: #8a4a3a;
  margin-top: 12px;
}

/* SUCCESS CARD */
.success-card {
  background: #d6cbbc;
  border-radius: 16px;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.checkmark-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2c2825;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.checkmark-circle svg {
  width: 22px;
  height: 22px;
  stroke: #e8e0d4;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  color: #2c2825;
  margin: 0 0 12px;
}

.success-card > p {
  font-size: 14px;
  color: #5a5248;
  line-height: 1.8;
  margin: 0 0 32px;
  max-width: 480px;
}

.divider {
  width: 100%;
  height: 0.5px;
  background: #a89e93;
  margin-bottom: 28px;
}

.summary-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7e74;
  margin-bottom: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
  color: #2c2825;
  padding: 7px 0;
  border-bottom: 0.5px solid #c4b9aa;
}

.summary-row:last-of-type { border-bottom: none; }
.summary-row span:first-child { color: #8a7e74; }

.back-btn {
  margin-top: 32px;
  background: none;
  border: 0.5px solid #a89e93;
  border-radius: 50px;
  padding: 12px 32px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #5a5248;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.03em;
}

.back-btn:hover { background: #ccc1b0; color: #2c2825; }

@media (max-width: 720px) {
  .form-page { flex-direction: column; padding: 40px 24px; gap: 40px; }
  .form-left { flex: none; position: static; }
  .form-left h1 { font-size: 40px; }
  .field-row { grid-template-columns: 1fr; }
  .success-card { padding: 36px 28px; }
}

/* ─── REFERENCES ──────────────────────────────────────── */
.reference-block {
  background: #d6cbbc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
}

.reference-header {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: #2c2825;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remove-ref-btn {
  background: none;
  border: 0.5px solid #a89e93;
  border-radius: 20px;
  padding: 4px 12px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #8a7e74;
  cursor: pointer;
  transition: all 0.15s;
}
.remove-ref-btn:hover { background: #ccc1b0; color: #2c2825; }

.add-ref-btn {
  background: none;
  border: 0.5px solid #a89e93;
  border-radius: 50px;
  padding: 10px 24px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #5a5248;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 24px;
  display: block;
}
.add-ref-btn:hover { background: #ccc1b0; color: #2c2825; }