/* ================= RESET & BASE STYLES ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(90deg, #007991, #00bfa6);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */
.app-header {
  background: linear-gradient(90deg, #007991, #00bfa6);
  color: white;
  padding: 30px 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.app-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.app-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.form-container {
  display: flex; /* CHANGE */
  justify-content: center; /* CENTER CARD */
  margin-bottom: 50px;
}

/* ================= FORM CARD ================= */
.form-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-title {
  color: #1a2980;
  font-size: 1.8rem;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #26d0ce;
  font-weight: 700;
}

/* ================= FORM STYLES ================= */
.application-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  color: #26d0ce;
  width: 20px;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #26d0ce;
  box-shadow: 0 0 0 3px rgba(38, 208, 206, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ================= RADIO BUTTONS ================= */
.product-selection {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 5px;
}

.radio-option {
  position: relative;
  flex: 1;
  min-width: calc(50% - 15px);
}

@media (max-width: 480px) {
  .radio-option {
    min-width: 100%;
  }
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.radio-label:hover {
  background: #edf7ff;
  border-color: #c3e6ff;
}

.radio-option input[type="radio"]:checked + .radio-label {
  background: linear-gradient(
    135deg,
    rgba(38, 208, 206, 0.1),
    rgba(26, 41, 128, 0.1)
  );
  border-color: #007991;
  color: #1a2980;
  font-weight: 600;
}

.radio-label i {
  font-size: 1.2rem;
  color: #26d0ce;
}

/* ================= SUBMIT BUTTON ================= */
.submit-btn {
  background: linear-gradient(90deg, #007991, #00bfa6);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  box-shadow: 0 6px 20px rgba(38, 208, 206, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(38, 208, 206, 0.4);
  background: linear-gradient(135deg, #15206e, #20b9b7);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* ================= FOOTER ================= */
.app-footer {
  text-align: center;
  padding: 30px 0;
  color: #ffffff;
  font-size: 0.95rem;
  border-top: 1px solid #15206e;
  margin-top: 40px;
}

.app-footer a {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
}

.app-footer a:hover {
  text-decoration: underline;
}

/* ================= VALIDATION STYLES ================= */
.error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #e74c3c;
}

.form-group.error .error-message {
  display: block;
}

/* ================= SIMPLE SUCCESS MESSAGE ================= */
.success-text {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  background: #eafaf1;
  color: #2ecc71;
  font-weight: 600;
  text-align: center;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.4;
  border: 1px solid #b7e4c7;
  animation: fadeUp 0.4s ease;
}

/* Icon */
.success-text i {
  margin-right: 6px;
  font-size: 1.1rem;
}

/* ================= RESPONSIVE ================= */

/* Mobile */
@media (max-width: 480px) {
  .success-text {
    font-size: 0.9rem;
    padding: 12px 14px;
  }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .success-text {
    font-size: 0.95rem;
    padding: 14px 16px;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .success-text {
    font-size: 1rem;
    padding: 16px 20px;
  }
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===================== EXTRA RESPONSIVE FIXES ===================== */
 
/* -------- Small Mobile (max 360px) -------- */
@media (max-width: 360px) {

  .app-header h1 {
    font-size: 1.3rem;
  }

  .app-header p {
    font-size: 0.7rem;
  }

  .form-card {
    padding: 20px;
    border-radius: 14px;
  }

  .form-title {
    font-size: 0.4rem;
  }

  .submit-btn {
    padding: 14px;
    font-size: 0.9rem;
  }

  .radio-label {
    padding: 12px;
    font-size: 0.9rem;
  }
}

/* -------- Mobile (max 480px) -------- */
@media (max-width: 480px) {

  .container {
    padding: 0 15px;
  }

  .app-header {
    padding: 20px 10px;
    margin-bottom: 25px;
  }

  .app-header h1 {
    font-size: 1.8rem;
  }

  .app-header p {
    font-size: 18px;
  }
 .form-title {
    font-size: 0.8rem;
  }
  .form-container {
    margin-bottom: 30px;
  }

  .form-card {
    padding: 25px;
    width: 100%;
  }

  .application-form {
    gap: 18px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.95rem;
    padding: 12px;
  }

  .radio-group {
    gap: 12px;
  }

  .radio-option {
    min-width: 100%;
  }

  .submit-btn {
    width: 100%;
    font-size: 1rem;
    padding: 15px;
  }

  .success-text {
    font-size: 0.9rem;
  }

  .app-footer {
    font-size: 0.85rem;
  }
}

/* -------- Tablet (max 768px) -------- */
@media (max-width: 768px) {

  .app-header h1 {
    font-size: 1.2rem;
  }

  .app-header p {
    font-size: 1.05rem;
  }
 .form-title {
    font-size: 1.3rem;
  }
  .form-card {
    max-width: 90%;
    padding: 30px;
  }

  .radio-option {
    min-width: calc(50% - 15px);
  }

  .submit-btn {
    font-size: 1.05rem;
  }
}

/* -------- Laptop (max 1024px) -------- */
@media (max-width: 1024px) {

  .container {
    max-width: 95%;
  }

  .form-card {
    max-width: 650px;
  }

  .app-header h1 {
    font-size: 1.4rem;
  }
}

/* -------- Large Screens (1200px+) -------- */
@media (min-width: 1200px) {

  .container {
    max-width: 1200px;
  }

  .form-card {
    max-width: 700px;
  }

  .app-header h1 {
    font-size: 2.8rem;
  }

  .app-header p {
    font-size: 1.2rem;
  }
}
