/* Profile Page Styles */

/* Card container */
.profile-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
}

.profile-card h2 {
  text-align: center;
  margin: 0 0 32px 0;
  font-family: 'gotham bold', sans-serif;
  font-size: 24px;
  color: #1a1a1a;
}

/* Welcome text for login page */
.welcome-text {
  text-align: center;
  margin: -24px 0 32px 0;
  font-family: 'gotham', sans-serif;
  font-size: 14px;
  color: #666;
}

/* Auth links for login/register pages */
.auth-links {
  margin-top: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-links a {
  font-family: 'gotham', sans-serif;
  font-size: 14px;
  color: #5b4aa4;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-links a:hover {
  color: #d59369;
}

/* Checkbox styling */
.checkbox-group {
  margin-top: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #5b4aa4;
}

.checkbox-label span {
  font-size: 14px;
  color: #333;
}

.checkbox-label a {
  color: #5b4aa4;
  text-decoration: none;
}

.checkbox-label a:hover {
  color: #d59369;
}

/* Form groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: 'gotham', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.form-group label .required {
  color: #e53935;
  margin-left: 2px;
}

/* Text inputs and selects */
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'gotham', sans-serif;
  font-size: 16px;
  color: #333;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #5b4aa4;
  box-shadow: 0 0 0 3px rgba(91, 74, 164, 0.1);
}

.form-input::placeholder {
  color: #999;
}

/* Select dropdown */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Gender radio buttons - card style */
.gender-options {
  display: flex;
  gap: 12px;
}

.gender-option {
  flex: 1;
  position: relative;
}

.gender-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.gender-option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'gotham', sans-serif;
  font-size: 15px;
  color: #666;
  background: #fff;
  transition: all 0.2s;
  cursor: pointer;
}

.gender-option input[type="radio"]:checked + .gender-option-label {
  border-color: #5b4aa4;
  background: #f8f7fc;
  color: #5b4aa4;
  font-weight: 500;
}

.gender-option:hover .gender-option-label {
  border-color: #bbb;
}

.gender-option input[type="radio"]:checked:hover + .gender-option-label {
  border-color: #5b4aa4;
}

/* Date picker input */
#new-date-of-birth-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  cursor: pointer;
}

/* Error messages */
.field-error {
  display: block;
  color: #e53935;
  font-size: 13px;
  margin-top: 6px;
  font-family: 'gotham', sans-serif;
}

/* Submit button */
.submit-wrapper {
  margin-top: 32px;
  text-align: center;
}

.btn-submit {
  display: inline-block;
  padding: 14px 48px;
  background: linear-gradient(135deg, #f6003a, #5b4aa4);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'gotham bold', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 74, 164, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Page background - extends to cover content-wrapper padding */
.profile-page-wrapper {
  background: #f5f5f7;
  min-height: calc(100vh - 53px);
  padding: 40px 20px;
  margin: -67px -15px -100px -15px;
  padding-top: 107px; /* 67px margin + 40px original padding */
  padding-bottom: 140px; /* 100px margin + 40px original padding */
}

/* Responsive */
@media (max-width: 560px) {
  .profile-card {
    padding: 24px;
    margin: 0 16px;
    border-radius: 8px;
  }

  .profile-card h2 {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .gender-options {
    flex-direction: column;
    gap: 8px;
  }

  .form-input {
    padding: 12px 14px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  .btn-submit {
    width: 100%;
    padding: 14px 24px;
  }

  .profile-page-wrapper {
    padding: 87px 0 120px 0;
    margin: -67px 0 -100px 0;
  }
}

/* Flatpickr overrides */
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: #5b4aa4;
  border-color: #5b4aa4;
}

/* Flatpickr alt input - match .form-input height */
input.form-input.form-control.input {
  width: 100% !important;
  height: 56.8px !important; /* 14px padding + 28.8px line + 14px padding */
  padding: 14px 16px !important;
  padding-right: 48px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  font-family: 'gotham', sans-serif !important;
  font-size: 16px !important;
  color: #333 !important;
  background: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  box-sizing: border-box !important;
  cursor: pointer;
}
