/* ========================================================
   Oxyjyn – Shared Stylesheet
   ======================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy:        #0d1b2e;
  --navy-light:  #112240;
  --blue-primary:#2563eb;
  --blue-hover:  #1d4ed8;
  --blue-light:  #eff6ff;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --white:       #ffffff;
  --bg-page:     #f3f4f6;
  --radius-card: 1rem;
  --radius-input:.5rem;
  --shadow-card: 0 4px 24px rgba(0,0,0,.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: #111827;
  margin: 0;
}

/* ---------- Header Banner ---------- */
.page-header {
  background-color: var(--navy);
  padding: 3rem 1rem 3.5rem;
  text-align: center;
  color: var(--white);
}

.page-header .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background-color: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  font-size: .78rem;
  font-weight: 500;
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  letter-spacing: .02em;
}

.page-header .badge-pill svg {
  flex-shrink: 0;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 .75rem;
}

.page-header p {
  color: rgba(255,255,255,.7);
  max-width: 440px;
  margin: 0 auto;
  font-size: .95rem;
  line-height: 1.6;
}

/* ---------- Back Link ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--blue-primary);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color .2s;
}

.back-link:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

/* ---------- Card ---------- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2.25rem 2rem;
}

/* ---------- Form Controls ---------- */
.form-label {
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: .4rem;
}

.form-label .optional-tag {
  color: var(--text-muted);
  font-weight: 400;
  font-size: .8rem;
}

.form-control,
.form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: .9rem;
  color: #111827;
  background-color: var(--white);
  transition: border-color .2s, box-shadow .2s;
  padding: .55rem .85rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
  outline: none;
}

.form-control::placeholder {
  color: #9ca3af;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ---------- File Upload ---------- */
.file-upload-label {
  display: flex;
  align-items: center;
  gap: .65rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-input);
  padding: .75rem 1rem;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text-muted);
  transition: border-color .2s, background .2s;
  background: var(--white);
}

.file-upload-label:hover {
  border-color: var(--blue-primary);
  background: var(--blue-light);
  color: var(--blue-primary);
}

.file-upload-label svg {
  flex-shrink: 0;
  color: var(--blue-primary);
}

#fileUpload {
  display: none;
}

.file-name-display {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .3rem;
}

/* ---------- Consent Checkbox ---------- */
.consent-box {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: .9rem 1rem;
}

.consent-box .form-check-input {
  margin-top: .2rem;
  border-color: #d1d5db;
}

.consent-box .form-check-input:checked {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.consent-text {
  font-size: .82rem;
  color: #4b5563;
  line-height: 1.55;
}

.consent-text a {
  color: var(--blue-primary);
  text-decoration: none;
}

.consent-text a:hover {
  text-decoration: underline;
}

/* ---------- Submit Button ---------- */
.btn-send {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: var(--white);
  border: none;
  border-radius: .55rem;
  padding: .75rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: opacity .2s, transform .15s;
  cursor: pointer;
}

.btn-send:hover {
  opacity: .92;
  transform: translateY(-1px);
}

.btn-send:active {
  transform: translateY(0);
}

.btn-send:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Alerts ---------- */
.alert-success-custom {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius-input);
  padding: .85rem 1rem;
  font-size: .88rem;
  display: none;
}

.alert-error-custom {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: var(--radius-input);
  padding: .85rem 1rem;
  font-size: .88rem;
  display: none;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 1.75rem 1rem;
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.7;
}

.site-footer strong {
  color: #374151;
  font-weight: 600;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 575px) {
  .contact-card {
    padding: 1.5rem 1.1rem;
  }
}
