/* ===================== CONTACT PAGE CSS ===================== */
/* Matches OnCall login page aesthetic — clean card, golden accent */
/* ============================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --gold:        #F5A623;
  --gold-dark:   #e09415;
  --gold-light:  #fdf3e0;
  --dark:        #1a1a2e;
  --text:        #2d2d2d;
  --muted:       #7a7a8c;
  --border:      #e8e8f0;
  --bg:          #f0f2f7;
  --card-bg:     #ffffff;
  --radius:      18px;
  --shadow:      0 20px 60px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --input-focus: 0 0 0 3px rgba(245,166,35,0.18);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(245,166,35,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(245,166,35,0.06) 0%, transparent 50%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: var(--text);
}

/* ── Card ── */
.container {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 560px;
  padding: 2.8rem 2.6rem 2.4rem;
  position: relative;
  overflow: hidden;
  animation: cardIn 0.55s cubic-bezier(.22,.68,0,1.2) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Gold accent bar at top */
.container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ── Header ── */
.header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.brand {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 0.35rem;
}

.brand span {
  color: var(--gold);
}

h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Alerts ── */
.alert {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert.success {
  background: #eafaf1;
  color: #1e8449;
  border: 1px solid #a9dfbf;
}

.alert.error {
  background: #fdf2f2;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}

/* ── Form ── */
form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.38rem;
  letter-spacing: 0.01em;
}

label .req {
  color: #e74c3c;
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: var(--input-focus);
}

input::placeholder,
textarea::placeholder {
  color: #bbb;
}

/* Select arrow */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  pointer-events: none;
}

select {
  cursor: pointer;
  padding-right: 2.5rem;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ── Honeypot ── */
.hp { display: none !important; }

/* ── Submit Button ── */
.submit-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
  margin-top: 0.4rem;
}

.submit-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(245,166,35,0.42);
}

.submit-btn:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

/* ── Footer / Back link ── */
.footer {
  text-align: center;
  margin-top: 1.4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.back-link:hover {
  color: var(--gold);
}

.back-link svg {
  transition: transform 0.2s;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .container {
    padding: 2rem 1.4rem 1.8rem;
    border-radius: 14px;
  }

  .brand { font-size: 1.7rem; }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .form-row .form-group {
    margin-bottom: 1.1rem;
  }
}

@media (max-width: 380px) {
  body { padding: 1rem 0.6rem; }
  .container { padding: 1.6rem 1.1rem; }
}