* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e8 100%);
  color: #1f2937;
  line-height: 1.6;
  padding: 2rem 1rem;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(34, 197, 94, 0.1);
  overflow: hidden;
}

.form-header {
  position: relative;
  top: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.form-header img {
  max-width: 120px;
  margin-bottom: 15px;
}

.form-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
  color: #006eb8;
}

.form-header p {
  margin: 5px 0;
  font-style: italic;
  color: #006eb8;
}

.form-content {
  padding: 3rem 2rem;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #006eb8;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #d1fae5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  width: 24px;
  height: 24px;
  background: #006eb8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.required {
  color: #ef4444;
}

input,
select,
textarea {
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #006eb8;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.radio-item:hover {
  background: #f3f4f6;
}

input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: #006eb8;
}

textarea {
  resize: none;
  min-height: 100px;
}

.note {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
  margin-left: 0.5rem;
}

.declaration {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
}

.declaration-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #006eb8;
  margin-bottom: 1rem;
}

.declaration-text {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.signature-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.signature-line input {
  /* border-bottom: 2px solid #d1d5db; */
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

.signature-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.submit-section {
  margin-top: 3rem;
  text-align: center;
}

.submit-btn {
  background: #006eb8;
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .form-content {
    padding: 2rem 1.5rem;
  }

  .signature-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}


/* message */
.msg-card {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.msg-card.success {
    background-color: #e6ffed;
    color: #016C20;
    border-left: 5px solid #016C20;
}
.msg-card.error {
    background-color: #ffe6e6;
    color: #b30000;
    border-left: 5px solid #b30000;
}
/* General Form Styling */
        .form-content {
            padding: 2rem;
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        }

        .section {
            margin-bottom: 2.5rem;
            border: 1px solid #eee;
            border-radius: 10px;
            padding: 1.5rem;
            background-color: #fdfdfd;
        }

        .section-title {
            display: flex;
            align-items: center;
            font-size: 1.4rem;
            color: #012150;
            margin-bottom: 1.5rem;
            border-bottom: 2px solid #e8f4fd;
            padding-bottom: 0.8rem;
        }

        .section-icon {
            background: #012150;
            color: white;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1rem;
            margin-right: 0.8rem;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-group label {
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: #333;
        }

        .form-group input[type="text"],
        .form-group input[type="email"],
        .form-group input[type="tel"],
        .form-group select,
        .form-group textarea {
            padding: 0.8rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
            width: 100%;
        }

        .form-group textarea {
            resize: vertical;
        }

        .full-width {
            grid-column: 1 / -1;
        }

        /* Radio Button Styling */
        .radio-group {
            display: flex;
            flex-wrap: wrap; /* Allow wrapping for smaller screens */
            gap: 1rem;
            margin-top: 0.5rem; /* Adjust spacing */
        }

        .radio-item input[type="radio"] {
            display: none;
        }

        .radio-item label {
            display: inline-block;
            padding: 0.6rem 1.2rem;
            border: 2px solid #ddd;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: normal; /* Reset font-weight from form-group label */
        }

        .radio-item input[type="radio"]:checked+label {
            background-color: #012150;
            color: white;
            border-color: #012150;
        }

        /* Loader Styling */
        .loader {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #012150;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 1rem auto; /* Center the loader */
            display: none; /* Hidden by default */
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }