:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #eef4fb;
  --line: #d8e2ef;
  --text: #1f2a37;
  --muted: #5f6f82;
  --primary: #315f91;
  --primary-dark: #3b3b3f;
  --accent: #ffffff;
  --success: #eef9f0;
  --error: #c53d3d;
  --shadow: 0 20px 60px rgba(33, 56, 86, 0.12);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter';
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fa 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

.page-wrap {
  padding: 34px 18px;
}

.contact-shell {
  max-width: 1100px;
   min-height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  background: var(--panel);
  border: 1px solid rgba(216, 226, 239, 0.7);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-left,
.contact-right {
  min-width: 0;
}

.photo-holder {
  position: relative;
  min-height: 100%;
  background:
    cover url('https/images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1200&q=80') no-repeat 95 center;
  display: flex;
  align-items: flex-end
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(20,39,61,0.20) 100%);
}

.photo-content {
  position: relative;
  z-index: 1;
  padding: 38px;
  color: #fff;
}

.eyebrow,
.form-kicker {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 11px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow {
  background:#808181;
  border: 1px solid rgba(255,255,255,0.22);
  margin-bottom: 18px;
}

.photo-content h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  max-width: 520px;
}

.photo-content p {
  margin: 0 0 22px;
  max-width: 560px;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
}

.left-points {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.point-card {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
}

.point-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.point-card span {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.contact-right {
  padding: 40px;
  background: #ffffff;
}

.form-head {
  margin-bottom: 28px;
}

.form-kicker {
  background: var(--accent);
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.form-head h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.form-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-form legend {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.full-width {
  grid-column: 1 / -1;
}

label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

label span,
.checkbox-label b {
  color: #b73333;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfdff;
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #8a98aa;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(49,95,145,0.75);
  box-shadow: 0 0 0 4px rgba(49,95,145,0.10);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.checkbox-group {
  margin-top: 2px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex: 0 0 auto;
  padding: 0;
}

.error-message {
  min-height: 18px;
  padding-top: 6px;
  font-size: 12px;
  color: var(--error);
}

.input-error,
.select-error,
.textarea-error {
  border-color: rgba(197,61,61,0.8);
  box-shadow: 0 0 0 4px rgba(197,61,61,0.08);
}

.form-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 15px 24px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4c79aa 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(49,95,145,0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #3e6792 100%);
}

.btn-secondary {
  background: #eef3f8;
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background: #e3ebf4;
}

.success-shell,
.error-shell {
  max-width: 760px;
  margin: 70px auto;
  padding: 22px;
}

.status-card {
  background: #fff;
  border-radius: 24px;
  padding: 38px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 226, 239, 0.7);
}

.status-card h1 {
  margin-top: 0;
}

.status-card p {
  line-height: 1.7;
  color: var(--muted);
}

.status-card a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .photo-holder {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .page-wrap {
    padding: 14px;
  }

  .contact-right,
  .photo-content {
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}