/* ============= BASIC RESET ============= */
.demo-form * {
  box-sizing: border-box;
}

/* ============= FORM WRAPPER ============= */
.demo-form {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.demo-form-content {
  background: #EEF2FB;
  padding: 2rem;
  border-radius: 12px;
}

/* ============= HEADER ============= */
.demo-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.demo-title {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #231F20;
}

.demo-subtitle {
  font-size: 16px;
  color: #4B4848;
  line-height: 20px;
}

/* ============= FORM BODY ============= */
.demo-form-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* 2 Columns Row */
.form-row {
  display: flex;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group label {
    font-size: 16px;
    margin-bottom: 8px;
    color: #231F20;
    font-weight: 700;
    line-height: 22px;
}

.redstar {
  color: red;
}

/* Input styling */
.form-input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.form-input:focus {
  outline: none;
  border-color: #00AFED;
}

/* Submit Button */
.form-submit-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.demo-submit-btn {
  background: #0094ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  margin-left: 10px;
}

.demo-submit-btn:disabled {
  color: #817F7F;
  border: 1.5px solid #E5E7EB;
  background-color: #E5E7EB;
  cursor: not-allowed;
}

.form-submit-wrap .demo-submit-btn.filled-button:not(:disabled) {
  color: #FFFFFF !important;
  border-color: #00AFED !important;
  background-color: #00AFED !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

/* ============= SUCCESS POPUP ============= */
.application-success {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.application-success.show {
  display: flex;
}

.success-content {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  text-align: center;
}

.success-close-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #00AFED;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.success-close-btn:hover {
  opacity: 0.85;
}

/* ============= MOBILE ============= */
@media(max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}
