/* Form container */
.naf-form {
  max-width: 1200px;
  margin: 24px auto;
  padding: 20px;
  border-radius: 12px;
  font-family: 'Jost', sans-serif;
  box-sizing: border-box;
}

/* Grid layout for form fields */
.naf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px; /* space between columns and rows */
}

/* Full width fields */
.naf-group--full {
  grid-column: 1 / -1;
}

/* Labels */
.naf-group label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

.naf-group label span {
  color: #d00; /* red asterisk */
}

/* Text, email, tel, number, date, select, textarea */
.naf-group input,
.naf-group select,
.naf-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 2px solid #c9cfd5;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Jost', sans-serif;
  box-sizing: border-box;
}

/* Improve select dropdown */
.naf-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23666' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E<path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

/* Date input - consistent style */
.naf-group input[type="date"] {
  color-scheme: light;
}

/* Focus state */
.naf-group input:focus,
.naf-group select:focus,
.naf-group textarea:focus {
  outline: none;
  border-color: #3184ff;
  box-shadow: 0 0 0 3px rgba(49,132,255,0.15);
}

/* Validation error text */
/* Error text styling */
.naf-error {
    color: #d93025;   /* Google-style red */
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* Invalid input highlight */
.naf-invalid {
    border: 1px solid #d93025 !important;
    background: #fff6f6; /* light red background */
    border-radius: 4px;
}
.swal2-popup.naf-success-popup {
    border-radius: 10px;
    padding: 20px;
}

.swal2-title {
    font-size: 22px;
    font-weight: 600;
    color: #2e7d32; /* green */
}


/* Checkbox group */
.naf-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.naf-checks label {
  font-weight: 500;
}

/* Submit button */
.naf-btn {
  margin-top: 16px;
  padding: 12px 20px;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  grid-column: 1 / -1;
}

.naf-btn:hover {
  background: #1f2937;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .naf-grid {
    grid-template-columns: 1fr;
  }
}