/* ============================================================
   DevBehindYou — Collaboration Request App
   Brand system: cream / near-black / electric blue
   ============================================================ */

@font-face {
  font-family: 'Big Shoulders';
  font-weight: 700;
  font-style: normal;
  src: url('../assets/fonts/BigShoulders-Bold.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Big Shoulders';
  font-weight: 400;
  font-style: normal;
  src: url('../assets/fonts/BigShoulders-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  font-weight: 400;
  font-style: normal;
  src: url('../assets/fonts/WorkSans-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  font-weight: 700;
  font-style: normal;
  src: url('../assets/fonts/WorkSans-Bold.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  font-weight: 400;
  font-style: italic;
  src: url('../assets/fonts/WorkSans-Italic.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 400;
  font-style: normal;
  src: url('../assets/fonts/JetBrainsMono-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 700;
  font-style: normal;
  src: url('../assets/fonts/JetBrainsMono-Bold.ttf') format('truetype');
  font-display: swap;
}

:root {
  --cream: #F9FAF4;
  --cream-2: #EFEDE3;
  --black: #14161A;
  --black-2: #0E0F12;
  --blue: #2B42F5;
  --blue-light: #7CA0FF;
  --gray-text: #6B6E76;
  --line: #D9D7CC;
  --white: #FFFFFF;
  --error: #C0392B;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--cream);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--black);
}

a { color: inherit; }

.split {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ============ PHOTO PANEL ============ */
.panel-photo {
  position: relative;
  flex: 0 0 42%;
  min-height: 420px;
  background: var(--black);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.photo-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.headshot {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 108%;
  width: auto;
  max-width: none;
  object-fit: cover;
  filter: saturate(1.02);
}

.panel-photo-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: 'Big Shoulders';
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
  width: fit-content;
}
.logo-arrow { color: var(--blue); flex-shrink: 0; }

.panel-photo .quote {
  margin: 0;
  font-family: 'Work Sans';
  font-style: italic;
  font-size: 17px;
  color: #D7D8DC;
  max-width: 320px;
}

.chip {
  margin-top: auto;
  align-self: flex-start;
  background: var(--blue);
  color: var(--white);
  font-family: 'JetBrains Mono';
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border-radius: 20px;
}

/* ============ FORM PANEL ============ */
.panel-form {
  flex: 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
}

.form-inner {
  width: 100%;
  max-width: 520px;
}

.eyebrow {
  font-family: 'JetBrains Mono';
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.headline {
  font-family: 'Big Shoulders';
  font-weight: 700;
  font-size: 52px;
  line-height: 0.98;
  letter-spacing: -0.5px;
  margin: 0 0 22px;
}
.headline .line-1 { display: block; color: var(--black); }
.headline .line-2 { display: block; color: var(--blue); }

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.pill {
  font-family: 'JetBrains Mono';
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.6px solid var(--black);
  color: var(--black);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.pill-filled {
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
}

/* ============ FORM ELEMENTS ============ */
.collab-form { display: flex; flex-direction: column; gap: 22px; }

.field { display: flex; flex-direction: column; }

.field label {
  font-family: 'Work Sans';
  font-weight: 700;
  font-size: 14.5px;
  color: var(--black);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  font-family: 'Work Sans';
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  border: 1.6px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #A9ACB4; }

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 66, 245, 0.12);
}

.field input.invalid,
.field textarea.invalid {
  border-color: var(--error);
}

.field-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  min-height: 16px;
}

.counter {
  font-family: 'JetBrains Mono';
  font-size: 12px;
  color: var(--gray-text);
  margin-left: auto;
}
.counter.warn { color: var(--error); }

.error-msg {
  font-family: 'Work Sans';
  font-size: 12.5px;
  color: var(--error);
  font-weight: 600;
}

/* ============ SUBMIT BUTTON ============ */
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--black);
  color: var(--cream);
  border: none;
  border-radius: 28px;
  padding: 16px 28px;
  font-family: 'Big Shoulders';
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  margin-top: 4px;
}
.submit-btn:hover { background: var(--blue); }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.submit-btn.ghost {
  background: transparent;
  color: var(--black);
  border: 1.6px solid var(--black);
}
.submit-btn.ghost:hover { background: var(--black); color: var(--cream); }

.form-note {
  font-family: 'Work Sans';
  font-size: 13.5px;
  color: var(--gray-text);
  min-height: 18px;
  margin: 0;
}
.form-note.error { color: var(--error); font-weight: 600; }

/* ============ SUCCESS STATE ============ */
.success-state {
  text-align: left;
  padding: 12px 0 8px;
}
.success-icon { margin-bottom: 18px; }
.success-state h2 {
  font-family: 'Big Shoulders';
  font-size: 34px;
  margin: 0 0 10px;
  color: var(--black);
}
.success-state p {
  font-family: 'Work Sans';
  font-size: 15.5px;
  color: var(--gray-text);
  line-height: 1.5;
  margin: 0 0 24px;
}
.success-state p a { color: var(--blue); font-weight: 700; text-decoration: none; }
.success-state p a:hover { text-decoration: underline; }

/* ============ FOOTER ============ */
.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1.5px solid var(--line);
  font-family: 'JetBrains Mono';
  font-size: 13px;
  color: var(--gray-text);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .split { flex-direction: column; }
  .panel-photo {
    flex: 0 0 320px;
    min-height: 320px;
  }
  .headshot { height: 100%; }
  .panel-form { padding: 44px 28px 56px; }
  .headline { font-size: 40px; }
}

@media (max-width: 480px) {
  .panel-photo { flex-basis: 260px; min-height: 260px; }
  .panel-photo-content { padding: 26px; }
  .headline { font-size: 34px; }
  .roles { gap: 8px; }
  .footer { flex-direction: column; gap: 6px; }
}
