/* =======================
   Form Styling (form.css)
   ======================= */

/* General form container */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* consistent spacing between fields */
  max-width: 500px;
  margin: 0 auto; /* center the form */
  padding: 1rem;
}

/* Input, select, textarea fields */
form input[type="text"],
form input[type="email"],
form input[type="password"],
form select,
form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover and focus states */
form input:focus,
form select:focus,
form textarea:focus {
  border-color: #11998e;
  box-shadow: 0 0 4px rgba(17, 153, 142, 0.3);
  outline: none;
}

/* Textarea size */
form textarea {
  min-height: 100px;
  resize: vertical;
}

/* Checkbox alignment */
.cv-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #333;
}

.cv-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Submit button */
button.submit-btn {
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(90deg, #114799, #38efef);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.submit-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* =======================
   Mobile Responsive
   ======================= */
@media (max-width: 768px) {
  form {
    padding: 0.5rem;
  }

  .cv-checkbox {
    font-size: 0.8rem;
  }

  button.submit-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    min-width: 100%; /* full width button */
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  form {
    gap: 0.8rem;
  }

  form input,
  form select,
  form textarea {
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
  }

  button.submit-btn {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
}
button.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

form input, form select, form textarea {
  font-size: 1rem; /* inherit base scaling */
}