* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #07152f;
  background:
    radial-gradient(circle at top left, rgba(113, 96, 255, 0.08), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}

/* Header */
.site-header {
  height: 60px;
  background: #08a6c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
}

.brand-name {
  font-size: 28px;
  font-weight: 400;
}

/* Main page */
.page-shell {
  max-width: 882px;
  margin: 45px auto 80px;
  padding: 0 18px;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 26px;
}

.pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: #e9e8ff;
  color: #0000cc;
  border: 1px solid #b8b6ff;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #07152f;
}

.hero p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #435a7d;
}

/* Cards */
.step-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e4e8f0;
  border-radius: 15px;
  padding: 21px 21px 24px;
  box-shadow: 0 18px 45px rgba(48, 60, 100, 0.11);
  margin-bottom: 26px;
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-number {
  width: 33px;
  height: 33px;
  min-width: 33px;
  border-radius: 50%;
  background: #302ee6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 7px 15px rgba(48, 46, 230, 0.35);
}

.step-heading h2 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 800;
  color: #031027;
}

.step-heading p {
  margin: 0;
  font-size: 13px;
  color: #2e466b;
}

hr {
  border: 0;
  border-top: 1px solid #e4e8f0;
  margin: 20px 0 16px;
}

/* Microsoft Form */
.form-frame-wrap {
  background: linear-gradient(135deg, #d4ffff 0%, #d7e0ff 52%, #b4d9ff 100%);
  border-radius: 9px;
  padding: 45px 35px;
  min-height: 590px;
  overflow: hidden;
}

.ms-form-frame {
  display: block;
  width: 100%;
  height: 700px;
  border: none;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 31px rgba(20, 35, 70, 0.22);
}

/* Upload */
.upload-box {
  border: 2px dashed #b8c8e6;
  border-radius: 14px;
  padding: 36px 24px;
  text-align: center;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8ff 100%);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-box:hover,
.upload-box.drag-over {
  border-color: #302ee6;
  background: #f2f3ff;
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #302ee6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
}

.upload-box h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.upload-box p {
  margin: 0 0 18px;
  color: #56677f;
  font-size: 14px;
}

.upload-btn {
  border: none;
  background: #302ee6;
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(48, 46, 230, 0.25);
}

.upload-btn:hover {
  background: #211fc9;
}

.file-name {
  margin-top: 16px;
  font-size: 14px;
  color: #07152f;
  font-weight: 700;
}

.file-error {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #b00020;
}

/* Click to understand */
.understand-box {
  margin-top: 18px;
  border: 1px solid #dce5f6;
  border-radius: 10px;
  background: #f7f9ff;
  overflow: hidden;
}

.understand-toggle {
  width: 100%;
  border: none;
  background: #eef3ff;
  color: #0b1b3a;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.understand-toggle:hover {
  background: #e6edff;
}

.understand-details {
  display: none;
  padding: 15px 16px 16px;
}

.understand-details.open {
  display: block;
}

.understand-details p {
  margin: 0 0 13px;
  color: #334b6f;
  font-size: 14px;
  line-height: 1.45;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #1c2e4a;
  line-height: 1.45;
  cursor: pointer;
}

.check-row input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: #302ee6;
}

/* CSS CAPTCHA */
.captcha-box {
  margin-top: 18px;
  width: 305px;
  min-height: 78px;
  background: #f9f9f9;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.captcha-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #111111;
  cursor: pointer;
}

.captcha-left input {
  width: 26px;
  height: 26px;
  accent-color: #302ee6;
}

.captcha-brand {
  width: 72px;
  text-align: center;
  color: #666666;
  font-size: 10px;
}

.captcha-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 3px;
  border-radius: 4px;
  background: #e8ecf7;
  color: #302ee6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

/* Submit */
.submit-area {
  margin-top: 22px;
}

.submit-btn {
  border: none;
  background: #302ee6;
  color: #ffffff;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(48, 46, 230, 0.25);
  transition: all 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  background: #211fc9;
  transform: translateY(-1px);
}

.submit-btn:disabled {
  background: #aab0c8;
  cursor: not-allowed;
  box-shadow: none;
}

.submit-message {
  margin-top: 12px;
  font-size: 14px;
  color: #2e466b;
  font-weight: 600;
}

.submit-message.success {
  color: #0b7a32;
}

.submit-message.error {
  color: #b00020;
}

/* Responsive */
@media (max-width: 940px) {
  .page-shell {
    max-width: calc(100% - 34px);
    margin-top: 36px;
  }

  .brand-name {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .form-frame-wrap {
    padding: 28px 18px;
  }

  .ms-form-frame {
    height: 680px;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: auto;
    padding: 13px 16px;
  }

  .brand-name {
    font-size: 21px;
  }

  .page-shell {
    max-width: calc(100% - 24px);
    margin-top: 28px;
    padding: 0;
  }

  .hero h1 {
    font-size: 27px;
  }

  .step-card {
    padding: 18px 14px 20px;
  }

  .step-heading h2 {
    font-size: 19px;
  }

  .form-frame-wrap {
    padding: 18px 12px;
    min-height: 520px;
  }

  .ms-form-frame {
    height: 620px;
  }

  .captcha-box {
    width: 100%;
  }
}

/* Thank You Page */
.thank-you-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
}

.thank-you-card {
  width: 100%;
  max-width: 620px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e4e8f0;
  border-radius: 18px;
  padding: 48px 34px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(48, 60, 100, 0.11);
}

.thank-you-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #0b7a32;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
}

.thank-you-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  color: #07152f;
}

.thank-you-card p {
  margin: 13px 0 0;
  font-size: 16px;
  color: #435a7d;
}

.thank-you-subtext {
  font-size: 14px;
}

.return-link {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #302ee6;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(48, 46, 230, 0.25);
}

.return-link:hover {
  background: #211fc9;
}