/* =========================================
   Gritty-ify — contact / form styles
   ========================================= */

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  color: #f5f5f5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: #0a0a0a;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
}

.brand svg {
  display: block;
  height: 28px;
  width: auto;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ---------- Card ---------- */
.card {
  background: #ffffff;
  color: #111111;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111111;
}

.card .subtitle {
  margin: 0 0 28px;
  font-size: 15px;
  color: #6b6b6b;
  font-weight: 400;
}

/* ---------- Form ---------- */
form {
  display: block;
}

.lbl {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  margin-bottom: 8px;
}

.lbl-spaced {
  margin-top: 20px;
}

/* ---------- Inputs ---------- */
input[type="email"],
input[type="text"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 400;
  color: #1a1a1a;
  background: #eef2ff;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
  display: block;
  margin-bottom: 20px;
  height: auto;
  line-height: 1.4;
}

input[type="email"]:hover,
input[type="text"]:hover,
input[type="tel"]:hover,
input[type="password"]:hover {
  background: #e0e7ff;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus {
  background: #eef2ff;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.12);
}

input[type="email"]::placeholder,
input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="password"]::placeholder {
  color: #6b7280;
  opacity: 1;
}

/* ---------- Hide browser password eye ---------- */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-contacts-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}

/* ---------- Error messages ---------- */
.error {
  display: none;
  color: #d92d20;
  font-size: 13px;
  margin: -12px 0 12px;
}
.error:not(:empty) {
  display: block;
}

/* ---------- Button ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #111111;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
  margin-top: 8px;
}
.btn:hover { background: #2a2a2a; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Fineprint ---------- */
.fineprint {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b6b6b;
}
.fineprint a {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Uploads ---------- */
.uploads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  background: #f7f7f7;
  border: 1.5px dashed #cfcfcf;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 110px;
  overflow: hidden;
}
.upload:hover { border-color: #111111; background: #f0f0f0; }
.upload i { font-size: 22px; color: #6b6b6b; margin-bottom: 8px; }
.upload .upload-text { font-size: 13px; font-weight: 500; color: #444444; }
.upload .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.upload-wide { width: 100%; min-height: 130px; }

.hint {
  font-size: 12px;
  color: #8a8a8a;
  margin: 4px 0 16px;
}

/* ---------- Success ---------- */
.success {
  text-align: center;
  padding: 20px 0 8px;
}
.success[hidden] { display: none !important; }
.success i { font-size: 44px; color: #16a34a; margin-bottom: 12px; }
.success h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: #111111; }
.success p { margin: 0; font-size: 14px; color: #6b6b6b; }

/* ---------- Footer ---------- */
.legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
  font-size: 13px;
  color: #8a8a8a;
}
.legal a { color: #8a8a8a; transition: color 0.15s ease; }
.legal a:hover { color: #ffffff; }

/* ---------- Responsive: phone ---------- */
@media (max-width: 520px) {
  .card { padding: 28px 22px; border-radius: 14px; }
  .card h1 { font-size: 24px; }
  .wrap { padding: 24px 14px 40px; }
}

/* ---------- Mobile: center logo ---------- */
@media (max-width: 600px) {
  .topbar {
    justify-content: center;
    padding: 18px 20px 24px;
  }
}
