* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Microsoft JhengHei", "Heiti TC", sans-serif;
}

body {
  background-color: #aed581; /* Light green background */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.modal-overlay {
  width: 100%;
  max-width: 500px;
}

.modal-container {
  background-color: white;
  border-radius: 10px;
  padding: 30px 25px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  line-height: 1;
}

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

.header-section h1 {
  color: #1b5e20; /* Dark green */
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.subtitle {
  color: #333;
  font-size: 15px;
  font-weight: bold;
}

.loan-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section-label {
  color: #1b5e20;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  display: block;
}

.contact-group {
  margin-bottom: 5px;
}

.gender-options {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  color: #333;
}

.radio-label input {
  margin-right: 8px;
  accent-color: #ccc; /* Basic styling, could be custom */
}

.input-group {
  width: 100%;
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0 15px;
  height: 45px;
  background-color: #fff;
}

.input-wrapper:focus-within {
  border-color: #aed581;
}

.input-prefix {
  color: #999;
  font-size: 14px;
  margin-right: 10px;
  white-space: nowrap;
  min-width: 40px;
}

.input-wrapper input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  height: 100%;
  color: #333;
}

.input-wrapper input::placeholder {
  color: #999;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  height: 45px;
  padding: 0 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  appearance: none;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

/* Custom arrow for select */
.select-wrapper::after {
  content: "∨"; /* Simple character arrow */
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) scaleY(0.7);
  color: #666;
  pointer-events: none;
  font-size: 12px;
}

/* File Upload Styles */
.upload-section {
  margin-top: 5px;
}

.file-upload-group {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.file-upload-box {
  flex: 1;
  height: 100px;
  border: 1px dashed #ccc;
  border-radius: 4px;
  position: relative;
  background-color: #fafafa;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}

.file-upload-box:hover {
  border-color: #aed581;
  background-color: #f1f8e9;
}

.file-upload-box input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  top: 0;
  left: 0;
  z-index: 2;
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: #999;
  font-size: 12px;
  pointer-events: none;
}

.preview-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: none;
  z-index: 1;
}

.upload-icon {
  font-size: 24px;
  margin-bottom: 5px;
  color: #ccc;
}

.file-upload-box.full-width {
  width: 100%;
  flex: none;
}

.info-text-small {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.icon-lock {
  font-size: 10px; /* Placeholder for lock icon */
}

.description-text {
  background-color: #f9f9f9; /* Might be transparent in image, but checking */
  /* Actually image shows just text, no bg box. Let's remove bg */
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 10px 0;
}

.description-text p {
  margin-bottom: 10px;
}

.en-text {
  color: #666;
}

.en-text strong {
  color: #333;
}

.submit-btn {
  background-color: #cddc39; /* Lime green */
  color: #1b5e20;
  border: none;
  border-radius: 8px;
  height: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background-color: #c0ca33;
}

.agreements {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-label input {
  margin-top: 3px;
  margin-right: 8px;
  accent-color: #1976d2; /* Blue check */
}

.checkbox-label a {
  color: #333;
  text-decoration: underline;
}

/* Review Section Styles */
.review-section {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: #f1f8e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.status-icon {
  font-size: 40px;
}

.review-section h2 {
  color: #1b5e20;
  font-size: 24px;
  margin-bottom: 15px;
}

.main-status {
  color: #333;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

.status-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.status-desc p {
  margin-bottom: 5px;
}
