/* style.css - Rekrutmen BPRS Amanah Bangsa */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(145deg, #eef4f0 0%, #d9e3de 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ========== CARD ========== */
.card {
  max-width: 820px;
  width: 100%;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 20px 50px -12px rgba(0, 40, 30, 0.3);
  padding: 2.8rem 3rem;
  transition: 0.2s;
  border: 1px solid rgba(0, 100, 80, 0.06);
}

/* ========== BRAND / HEADER ========== */
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e8efeb;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 14px;
  background: #f0f8f4;
  padding: 8px;
  border: 2px solid #e2ebe6;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0b4f3e;
  letter-spacing: -0.3px;
}

.brand-tagline {
  font-size: 0.75rem;
  color: #5a7a6e;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1a2e28;
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2 i {
  color: #0f7a60;
  font-size: 1.6rem;
}

.subtitle {
  color: #5a7a6e;
  margin: 0.3rem 0 1.8rem 0;
  background: #f2f9f6;
  padding: 10px 16px;
  border-radius: 12px;
  border-left: 4px solid #0f7a60;
  font-size: 0.95rem;
}

.required-star {
  color: #c0392b;
  font-weight: 700;
  margin-left: 2px;
}

.optional-badge {
  background: #e8ecf0;
  color: #5a6a72;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 30px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ========== FORM ========== */
.form-group {
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1d3a30;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  width: 18px;
  color: #0f7a60;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e2ebe6;
  border-radius: 14px;
  font-size: 0.95rem;
  background: #fafdfb;
  transition: all 0.25s ease;
  outline: none;
  font-family: 'Inter', sans-serif;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0f7a60;
  box-shadow: 0 0 0 4px rgba(15, 122, 96, 0.12);
  background: #ffffff;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* ========== FILE INPUT ========== */
.form-group input[type="file"] {
  padding: 14px 16px;
  background: #f4faf7;
  border-style: dashed;
  border-color: #b8d9ce;
  cursor: pointer;
}

.form-group input[type="file"]:hover {
  background: #eef8f3;
  border-color: #0f7a60;
}

.form-group small {
  margin-top: 6px;
  color: #5a7a6e;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group small i {
  color: #0f7a60;
  font-size: 0.75rem;
}

/* ========== SUBMIT BUTTON ========== */
#submitBtn {
  background: linear-gradient(135deg, #0f7a60 0%, #0b5f4a 100%);
  border: none;
  padding: 16px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 24px -8px rgba(15, 122, 96, 0.35);
  margin-top: 0.8rem;
  font-family: 'Inter', sans-serif;
}

#submitBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(15, 122, 96, 0.45);
}

#submitBtn:active {
  transform: scale(0.98);
}

#submitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#submitBtn i {
  font-size: 1.1rem;
}

/* ========== RESPONSE MESSAGE ========== */
#responseMessage {
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 500;
  display: none;
}

#responseMessage.success {
  display: block;
  background: #e8f5f0;
  color: #0f7a60;
  border: 1px solid #b8d9ce;
}

#responseMessage.error {
  display: block;
  background: #fde8e8;
  color: #b33;
  border: 1px solid #f5c8c8;
}

/* ========== FOOTER ========== */
.footer-note {
  margin-top: 2rem;
  text-align: center;
  color: #7a9a8e;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid #e8efeb;
  padding-top: 1.2rem;
}

.footer-note i {
  color: #0f7a60;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .card {
    padding: 1.8rem 1.2rem;
    border-radius: 24px;
  }
  
  h2 {
    font-size: 1.3rem;
    flex-wrap: wrap;
  }
  
  .brand-name {
    font-size: 1.1rem;
  }
  
  .logo {
    width: 48px;
    height: 48px;
    padding: 6px;
  }
  
  .subtitle {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
  
  #submitBtn {
    font-size: 1rem;
    padding: 14px 20px;
  }
}

@media (max-width: 400px) {
  .card {
    padding: 1.2rem 0.8rem;
  }
  
  .brand {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .brand-text {
    align-items: center;
  }
  
  h2 {
    justify-content: center;
    font-size: 1.1rem;
  }
}