/* Enquiry page styles */
:root {
  --section-pad: 80px;
  --block-gap: 48px;
}

body {
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
}

h1, h2 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--text-hi);
}

h1 { font-size: clamp(36px, 4.5vw, 52px); }
h2 { font-size: clamp(22px, 2.5vw, 28px); font-weight: 800; }

p { color: var(--text-lo); }

.container { max-width: 820px; margin: 0 auto; padding: 0 40px; }

.back-link {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-lo);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--text-hi); }
.back-link svg { width: 16px; height: 16px; }

.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--secondary-line);
}
.page-header h1 { margin-top: 16px; }
.page-header p { margin-top: 20px; font-size: 17px; max-width: 600px; }

.enquiry-form { padding: var(--section-pad) 0 100px; }

.form-section { margin-bottom: var(--block-gap); }
.form-section:last-of-type { margin-bottom: 56px; }

.section-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--secondary-line);
}
.section-label .num {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.section-label h2 { margin: 0; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field-grid.single { grid-template-columns: 1fr; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full { grid-column: 1 / -1; }

label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-hi);
}
label .req { color: var(--accent); margin-left: 2px; }

.hint {
  font-size: 12px;
  color: var(--text-lo);
  margin-top: -4px;
}

input, select, textarea {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  color: var(--text-hi);
  background: var(--secondary);
  border: 1px solid var(--secondary-line);
  border-radius: 8px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder, textarea::placeholder { color: rgba(148, 160, 164, 0.5); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.12);
}
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A0A4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
select option { background: var(--secondary); color: var(--text-hi); }
textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.65;
}
textarea.tall { min-height: 180px; }

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}
.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.checkbox-field label {
  font-weight: 400;
  font-size: 14px;
  color: var(--text-lo);
  cursor: pointer;
}
.checkbox-field label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--secondary-line);
}
.form-note {
  font-size: 13px;
  color: var(--text-lo);
  max-width: 360px;
}
.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #04120C;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 18px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 18px rgba(0, 245, 160, 0.25);
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 245, 160, 0.4);
}
.submit-btn svg { width: 16px; height: 16px; }

.success-panel {
  display: none;
  text-align: center;
  padding: 80px 0 120px;
}
.success-panel.visible { display: block; }
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-icon svg { width: 28px; height: 28px; color: var(--accent); }
.success-panel h2 { margin-bottom: 16px; }
.success-panel p { font-size: 17px; max-width: 480px; margin: 0 auto 32px; }
.success-panel .back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.enquiry-form.submitted { display: none; }

footer { padding: 40px 0; }

@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .field-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .submit-btn { width: 100%; justify-content: center; }
  .form-note { max-width: none; text-align: center; }
}

/* Light Theme Overrides */
[data-theme="light"] .submit-btn {
  color: #FFFFFF !important;
}

[data-theme="light"] .success-icon {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--accent);
}
