/* =========================
   SHEILDAXIS PREMIUM FORM CSS
   All styles scoped to .sa-* classes
========================= */

/* ---------- WRAPPER ---------- */
.sa-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- CARD ---------- */
.sa-card {
  position: relative;
  width: 100%;
  background: #FFFFFF;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(11, 95, 165, .10), 0 2px 8px rgba(11, 95, 165, .05);
}

/* Premium Gold Corners */
.sa-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border-radius: 0 0 100% 0;
  background: radial-gradient(circle at bottom right,
    rgba(255, 223, 110, .95) 0%,
    rgba(236, 191, 67, .90) 45%,
    rgba(191, 145, 25, .82) 75%,
    rgba(191, 145, 25, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.sa-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: 100% 0 0 0;
  background: radial-gradient(circle at top left,
    rgba(255, 223, 110, .95) 0%,
    rgba(236, 191, 67, .90) 45%,
    rgba(191, 145, 25, .82) 75%,
    rgba(191, 145, 25, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.sa-corner-top-right {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-top: 3px solid #D4AF37;
  border-right: 3px solid #D4AF37;
  border-radius: 0 12px 0 0;
  opacity: .85;
  z-index: 1;
}

.sa-corner-bottom-left {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-left: 3px solid #D4AF37;
  border-bottom: 3px solid #D4AF37;
  border-radius: 0 0 0 12px;
  opacity: .85;
  z-index: 1;
}

.sa-card > * {
  position: relative;
  z-index: 2;
}

/* ---------- HEADER ---------- */
.sa-header {
  text-align: center;
  padding-top: 40px;
}

.sa-logo {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.sa-brand {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(90deg, #0B5FA5 0%, #2F73B7 35%, #E7B95A 72%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.sa-platform {
  margin: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: #49637E;
}

.sa-divider {
  width: 110px;
  height: 2px;
  background: #D4AF37;
  margin: 18px auto;
  border-radius: 20px;
}

.sa-motto {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #6D7C90;
}

.sa-title {
  margin: 24px 0 0;
  font-size: 30px;
  font-weight: 700;
  color: #173E63;
}

.sa-desc {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: #617387;
}

/* ---------- FORM BODY ---------- */
.sa-body {
  margin-top: 24px;
  padding: 0 40px 40px;
}

.sa-field {
  margin-bottom: 18px;
}

.sa-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #163E63;
}

.sa-field label .required {
  color: #E53E3E;
}

.sa-field input,
.sa-field select,
.sa-field textarea {
  width: 100%;
  height: 54px;
  padding: 16px;
  border: 1px solid #D9E4F2;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #163E63;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.sa-field input:focus,
.sa-field select:focus,
.sa-field textarea:focus {
  outline: none;
  border-color: #0B5FA5;
  box-shadow: 0 0 0 3px rgba(11, 95, 165, 0.08);
}

.sa-field input::placeholder,
.sa-field textarea::placeholder {
  color: #A0B4C8;
}

.sa-field textarea {
  height: auto;
  min-height: 54px;
  resize: vertical;
}

.sa-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7B90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 48px;
}

/* ---------- SUBMIT BUTTON ---------- */
.sa-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  margin-top: 8px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #E8B85C 0%, #F2C978 45%, #DFA64A 100%);
  box-shadow: 0 8px 20px rgba(232, 184, 92, .35);
  transition: background .30s ease, transform .25s ease, box-shadow .30s ease;
  -webkit-appearance: none;
  appearance: none;
}

.sa-submit:hover {
  background: linear-gradient(135deg, #EDC16A 0%, #F6D48C 45%, #E2AF53 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 184, 92, .45);
}

.sa-submit:active {
  transform: scale(.98);
}

.sa-submit:disabled {
  opacity: .70;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.sa-submit.loading::after {
  content: "";
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: sa-spin .8s linear infinite;
}

@keyframes sa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------- FOOTER ---------- */
.sa-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, .20);
}

.sa-security {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #FFFDF8, #FFF7E9);
  border: 1px solid rgba(212, 175, 55, .25);
  border-radius: 12px;
  margin-bottom: 16px;
}

.sa-security-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.sa-security-content h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #163E63;
}

.sa-security-content p {
  margin: 0;
  line-height: 1.5;
  color: #5E6D81;
  font-size: 13px;
}

.sa-security-content span {
  display: inline-block;
  margin: 3px;
  padding: 4px 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #D4AF37;
  font-size: 11px;
  font-weight: 600;
  color: #163E63;
}

.sa-powered {
  text-align: center;
  padding-top: 8px;
}

.sa-powered p {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .5px;
  color: #7C8897;
}

.sa-powered-logo {
  width: 72px;
  height: auto;
  display: block;
  margin: auto;
}

/* ---------- TOAST ---------- */
.sa-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #10B981;
  color: #ffffff;
  padding: 16px 28px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-toast-icon {
  font-size: 18px;
  font-weight: bold;
}

.sa-toast-message {
  font-size: 15px;
  font-weight: 600;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .sa-wrapper {
    padding: 0 16px;
  }
  .sa-header {
    padding-top: 28px;
  }
  .sa-logo {
    width: 88px;
  }
  .sa-brand {
    font-size: 32px;
  }
  .sa-title {
    font-size: 22px;
  }
  .sa-platform,
  .sa-motto {
    font-size: 14px;
  }
  .sa-desc {
    font-size: 14px;
  }
  .sa-body {
    padding: 0 24px 28px;
  }
  .sa-security {
    padding: 10px 12px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .sa-security-icon {
    font-size: 18px;
  }
  .sa-security-content h4 {
    font-size: 14px;
  }
  .sa-security-content p {
    font-size: 12px;
  }
  .sa-security-content span {
    font-size: 10px;
    padding: 3px 8px;
  }
  .sa-powered-logo {
    width: 64px;
  }
  .sa-submit {
    height: 52px;
    font-size: 15px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .sa-wrapper {
    padding: 0 12px;
  }
  .sa-header {
    padding-top: 24px;
  }
  .sa-logo {
    width: 72px;
  }
  .sa-brand {
    font-size: 28px;
  }
  .sa-title {
    font-size: 20px;
  }
  .sa-platform,
  .sa-motto {
    font-size: 13px;
  }
  .sa-desc {
    font-size: 13px;
    padding: 0 8px;
  }
  .sa-body {
    padding: 0 16px 20px;
  }
  .sa-security {
    padding: 8px 10px;
  }
  .sa-security-content span {
    display: block;
    margin: 4px auto;
    width: fit-content;
    font-size: 10px;
    padding: 3px 8px;
  }
  .sa-powered-logo {
    width: 56px;
  }
  .sa-submit {
    height: 50px;
    font-size: 14px;
    border-radius: 12px;
    letter-spacing: .3px;
  }
}
