
:root {
  --orange:#f47721;
  --orange-dark:#d95f12;
  --black:#111;
  --text:#242424;
  --muted:#707070;
  --border:#e4e4e4;
  --page:#f4f4f4;
}

* { box-sizing:border-box; }

body {
  margin:0;
  background:var(--page);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.6;
}

button,input,select,textarea { font:inherit; }

.site-header {
  background:var(--black);
  color:white;
  border-bottom:4px solid var(--orange);
}

.header-inner {
  width:calc(100% - 40px);
  max-width:1200px;
  min-height:68px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand {
  color:white;
  text-decoration:none;
  font-size:18px;
  font-weight:800;
}

.brand span { color:var(--orange); }

.header-link {
  color:white;
  text-decoration:none;
  border:1px solid #777;
  border-radius:7px;
  padding:8px 13px;
  font-size:13px;
}

.header-link:hover {
  background:var(--orange);
  border-color:var(--orange);
}

.page-wrap {
  width:calc(100% - 40px);
  max-width:1200px;
  margin:35px auto 55px;
}

.intro {
  text-align:center;
  margin-bottom:25px;
}

.eyebrow {
  color:var(--orange-dark);
  font-size:12px;
  font-weight:800;
  letter-spacing:2px;
  text-transform:uppercase;
  margin:0 0 7px;
}

h1 {
  margin:0;
  color:var(--black);
  font-size:clamp(28px,4vw,40px);
  line-height:1.2;
}

.intro p {
  color:var(--muted);
  margin:10px 0 0;
}

.form-card {
  background:white;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 12px 35px rgba(0,0,0,.08);
  width:100%;
}

.form-top {
  padding:19px 26px;
  background:var(--black);
  color:white;
  border-bottom:4px solid var(--orange);
}

.form-top strong {
  display:block;
  font-size:17px;
}

.form-top span {
  color:#ddd;
  font-size:13px;
}

form {
  padding:26px;
  width:100%;
}

.section {
  border:1px solid var(--border);
  border-radius:10px;
  margin:0 0 20px;
  padding:21px;
  min-width:0;
  width:100%;
}

.section legend {
  padding:0 9px;
  color:var(--black);
  font-size:15px;
  font-weight:800;
}

.section-number {
  display:inline-grid;
  place-items:center;
  width:25px;
  height:25px;
  margin-right:7px;
  border-radius:50%;
  background:var(--orange);
  color:white;
  font-size:12px;
}

.section-note {
  color:var(--muted);
  font-size:13px;
  margin:-5px 0 17px;
}

.grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 28px;
}

.field { min-width:0; }
.field.full { grid-column:1/-1; }

label {
  display:block;
  margin-bottom:6px;
  color:#292929;
  font-size:13px;
  font-weight:700;
}

.required { color:var(--orange-dark); }

input,select,textarea {
  width:100%;
  min-height:45px;
  border:1px solid #d5d5d5;
  border-radius:7px;
  background:white;
  color:var(--text);
  padding:10px 12px;
  outline:none;
}

textarea {
  min-height:88px;
  resize:vertical;
}

input:focus,select:focus,textarea:focus {
  border-color:var(--orange);
  box-shadow:0 0 0 3px rgba(244,119,33,.14);
}

input::placeholder,textarea::placeholder { color:#999; }

.hint {
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
}

.password-wrap { position:relative; }

.password-wrap input { padding-right:80px; }

.toggle-btn {
  position:absolute;
  top:50%;
  right:8px;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#555;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  padding:6px;
}

/* PHOTO UPLOAD */

.photo-upload-box {
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
  padding:18px;
  background:#fafafa;
  border:1px dashed #ccc;
  border-radius:9px;
}

.photo-preview {
  width:125px;
  height:145px;
  border:1px solid #ddd;
  border-radius:7px;
  background:#eee;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  color:#777;
  font-size:12px;
  text-align:center;
  flex-shrink:0;
}

.photo-preview img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
}

.photo-upload-controls {
  flex:1;
  min-width:200px;
}

.photo-upload-controls input {
  background:white;
  padding:9px;
}

.photo-upload-controls p {
  color:var(--muted);
  font-size:12px;
  margin:8px 0 0;
}

.photo-remove {
  display:none;
  margin-top:10px;
  border:1px solid #ccc;
  background:white;
  padding:7px 12px;
  border-radius:6px;
  cursor:pointer;
  font-size:12px;
}

.declaration {
  display:flex;
  align-items:flex-start;
  gap:10px;
  background:#fff8f2;
  border:1px solid #f5d4bd;
  border-radius:8px;
  padding:13px 15px;
  font-size:12px;
  margin-bottom:20px;
}

.declaration input {
  width:17px;
  min-height:17px;
  margin:2px 0 0;
  accent-color:var(--orange);
}

.declaration label {
  margin:0;
  font-weight:500;
  line-height:1.5;
}

.actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.submit-btn,.reset-btn {
  min-height:47px;
  border-radius:7px;
  padding:11px 22px;
  font-weight:800;
  cursor:pointer;
}

.submit-btn {
  border:1px solid var(--orange);
  background:var(--orange);
  color:white;
}

.submit-btn:hover {
  background:var(--orange-dark);
}

.reset-btn {
  background:white;
  color:#333;
  border:1px solid #ccc;
}

.form-message {
  display:none;
  margin-top:18px;
  padding:13px 15px;
  border-radius:8px;
  font-size:13px;
}

.form-message.show { display:block; }

.form-message.info {
  background:#fff8f2;
  border:1px solid #f5d4bd;
  color:#71390f;
}

.form-message.error {
  background:#fff1f0;
  border:1px solid #f3c4c0;
  color:#b42318;
}

.site-footer {
  background:var(--black);
  color:#ccc;
  text-align:center;
  padding:20px 15px;
  font-size:12px;
}

.site-footer strong { color:var(--orange); }

@media(max-width:650px) {
  .page-wrap {
    width:calc(100% - 24px);
    margin-top:25px;
  }

  .header-inner {
    width:calc(100% - 24px);
    min-height:60px;
  }

  form { padding:16px; }

  .form-top { padding:16px 18px; }

  .section { padding:17px 14px; }

  .grid { grid-template-columns:1fr; gap:14px; }

  .field.full { grid-column:auto; }

  .actions { flex-direction:column; }

  .submit-btn,.reset-btn { width:100%; }

  .photo-upload-box { align-items:flex-start; }
}

/* AIYSSSSA SUCCESS POPUP */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
}
.success-overlay.show { display: flex; }
.success-modal {
  width: 100%;
  max-width: 440px;
  padding: 34px 26px 26px;
  text-align: center;
  color: #fff;
  background: #111;
  border: 1px solid var(--orange);
  border-top: 5px solid var(--orange);
  border-radius: 15px;
  box-shadow: 0 18px 55px rgba(0,0,0,.4);
  animation: successPopupIn .25s ease-out;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 17px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 36px;
  font-weight: 800;
}
.success-modal h2 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}
.success-modal h3 {
  margin: 0 0 13px;
  color: var(--orange);
  font-size: 15px;
}
.success-modal p {
  margin: 0 0 23px;
  color: #e1e1e1;
  font-size: 14px;
  line-height: 1.7;
}
.success-close {
  width: 100%;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--orange);
  border-radius: 7px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.success-close:hover { background: var(--orange-dark); }
.success-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@keyframes successPopupIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .success-modal { animation: none; }
}
