/* Modern & Elegant Affo Terms Agreement CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
  background: #f6f7fb;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #23233a;
}

.form-wrapper {
  max-width: 700px;
  margin: 48px auto 48px auto;
  background: #fff;
  border-radius: 22px;
  padding: 42px 36px 30px 36px;
  box-shadow: 0 8px 40px 0 rgba(69, 42, 186, 0.12), 0 1.5px 6px rgba(69, 42, 186, 0.08);
  font-family: inherit;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.form-wrapper:before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: linear-gradient(120deg, #9076f7 40%, #e8e1fb 100%);
  border-radius: 50%;
  left: -80px;
  top: -90px;
  opacity: 0.16;
  z-index: 0;
}

.page-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: -1px;
  color: #5b2bc6;
  position: relative;
  z-index: 1;
}

.section-title {
  background: linear-gradient(90deg, #8D51FE 70%, #b8a7fc 100%);
  color: #fff;
  padding: 14px 26px 14px 18px;
  border-radius: 9px;
  font-size: 1.18rem;
  margin-bottom: 26px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 18px 0 rgba(141,81,254,0.10);
  position: relative;
  z-index: 1;
}

label {
  font-weight: 600;
  margin-bottom: 7px;
  display: block;
  font-size: 1.07rem;
  color: #4b43a6;
  letter-spacing: 0.1px;
  margin-top: 7px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1.5px solid #e4e1fa;
  border-radius: 9px;
  font-size: 1rem;
  background: #f9f8fe;
  transition: border 0.15s, box-shadow 0.15s;
  color: #23233a;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border: 1.5px solid #8D51FE;
  background: #f5f1ff;
  box-shadow: 0 2px 12px 0 #b8a7fc3d;
}

textarea {
  min-height: 38px;
  resize: vertical;
}

input[readonly], textarea[readonly] {
  background: #f5f6fa;
  color: #888;
  border-style: dashed;
}

.form-btn-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.submit-btn {
  background: linear-gradient(90deg, #8D51FE 55%, #5b2bc6 100%);
  color: #fff;
  padding: 15px 34px;
  border: none;
  border-radius: 11px;
  font-size: 1.13rem;
  font-weight: 700;
  cursor: pointer;
  width: 230px;
  margin: 0;
  margin-top: 26px;
  display: block;
  letter-spacing: 0.1px;
  box-shadow: 0 2px 12px 0 #b8a7fc2e;
  transition: background 0.18s, transform 0.14s;
}

button.submit-btn:hover, .submit-btn:focus {
  background: linear-gradient(90deg, #5b2bc6 55%, #8D51FE 100%);
  transform: scale(1.035);
  color: #fff;
}

input[type="checkbox"] {
  accent-color: #8D51FE;
  width: 1.1em;
  height: 1.1em;
  vertical-align: middle;
  margin-right: 8px;
}

ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.form-wrapper hr {
  border: none;
  border-top: 1.5px dashed #e7e4f3;
  margin: 28px 0 24px 0;
}

.form-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  background: #fcfbff;
  border-radius: 5px;
  overflow: hidden;
  font-size: 0.99rem;
}

.form-wrapper table td {
  border: 1px solid #e4e1fa;
  padding: 9px 12px;
}

.form-wrapper table tr:nth-child(odd) {
  background: #f7f4fd;
}

.form-wrapper table tr:nth-child(even) {
  background: #f2f1fa;
}

.form-wrapper .error, .form-wrapper .success {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.form-wrapper .error {
  color: #fff;
  background: #e74c3c;
  border: 1.5px solid #e74c3c;
}

.form-wrapper .success {
  color: #12723d;
  background: #d8fbea;
  border: 1.5px solid #9cf5cb;
}

@media (max-width: 700px) {
  .form-wrapper {
    padding: 19px 4vw 20px 4vw;
    max-width: 98vw;
  }
  .section-title { font-size: 1.08rem; padding: 11px 12px; }
  .submit-btn { width: 90%; font-size: 1rem; }
}