/* --- Contact / Forms --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-heading);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-text-heading);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--color-bg);
  color: var(--color-text);
}

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

/* Contact Layout */
/* --- Clean Contact Section --- */
.contact-clean {
  padding: 140px 0 80px;
  background: var(--color-bg);
}

.contact-clean__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.contact-clean__header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.contact-clean__header p {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.contact-clean__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-clean__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.contact-clean__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.contact-clean__form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--color-text-heading);
}

.contact-clean__form form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-clean__form .cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-clean__form .cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-clean__form input,
.contact-clean__form select,
.contact-clean__form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color-text-heading);
  background: var(--color-bg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
  outline: none;
}

.contact-clean__form input::placeholder,
.contact-clean__form textarea::placeholder {
  color: var(--color-text-muted);
  transition: color 0.25s ease;
}

.contact-clean__form input:hover,
.contact-clean__form select:hover,
.contact-clean__form textarea:hover {
  border-color: #999;
  background: #fafafa;
}

.contact-clean__form input:focus,
.contact-clean__form select:focus,
.contact-clean__form textarea:focus {
  border-color: var(--color-text-heading);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.contact-clean__form input:focus::placeholder,
.contact-clean__form textarea:focus::placeholder {
  color: #bbb;
}

/* Validation error state */
.contact-clean__form .field-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

/* Validation error message */
.cf-error-msg {
  color: #EF4444;
  font-size: 0.75rem;
  margin-top: -12px;
  margin-bottom: 4px;
  padding-left: 18px;
  display: none;
}

.cf-error-msg.visible {
  padding-top:10px;
  display: block;
}

/* Form-level alert */
.cf-alert {
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}

.cf-alert.visible {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cf-alert--success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.cf-alert--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.contact-clean__form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 44px;
  cursor: pointer;
}

.contact-clean__form textarea {
  border-radius: var(--radius-lg);
  resize: vertical;
  min-height: 130px;
}

.contact-clean__form .cf-submit {
  text-align: center;
  margin-top: 8px;
}

.contact-clean__form .cf-submit .btn {
  min-width: 200px;
  justify-content: center;
  border-radius: 30px;
}

@media (max-width: 900px) {
  .contact-clean__body { grid-template-columns: 1fr; gap: 40px; }
  .contact-clean__image { order: -1; }
}

@media (max-width: 480px) {
  .contact-clean__form .cf-row { grid-template-columns: 1fr; }
}

/* --- Success Page --- */
.form-success {
  text-align: center;
  padding: 48px;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success__icon svg {
  width: 28px;
  height: 28px;
  stroke: #22C55E;
  fill: none;
  stroke-width: 2;
}

.form-success h3 {
  margin-bottom: 12px;
}

/* --- Steps / What Happens Next --- */
.steps-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 32px;
}

.steps-card__item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.steps-card__item:last-child {
  margin-bottom: 0;
}

.steps-card__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #FFFFFF;
}

.steps-card__number--done {
  background: #22C55E;
}

