/* Enhanced Sign-Up Styles */
:root {
  --primary-color: #000000;
  --secondary-color: #333333;
  --accent-color: #e5e5e5;
  --text-light: #ffffff;
  --text-dark: #000000;
  --error-color: #ff3b30;
  --success-color: #34c759;
  --bg-light: #f5f5f5;
  --bg-dark: #1c1c1e;
  --card-bg: #ffffff;
  --border-radius: 20px;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-image: url('images/braxton-apana-KcIOo-vdEtg-unsplash.jpg');
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: var(--bg-light); */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal-content {
  background-color: #ffffffe3;
  width: 90%;
  max-width: 550px; /* This ensures it doesn't get too wide */
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

/* Progress Bar */
.progress-container {
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  width: 0%;
  transition: width 0.3s ease;
}

/* Step Title */
.step-title {
  margin-top: 48px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.step-title h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.step-description {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #666;
  font-size: 0.9rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: rgba(200, 200, 200, 0.1);
  font-size: 1rem;
  transition: border 0.3s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-option input {
  margin-right: 8px;
}

/* Range Slider */
.measurement-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

input[type="range"] {
  width: 100%;
  margin-top: 0.5rem;
}

.measurement-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Button Styles */
.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary,
.btn-success {
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--text-dark);
}

.btn-success {
  background-color: var(--success-color);
  color: var(--text-light);
  margin-top: 1.5rem;
  padding: 14px 28px;
  font-size: 1.1rem;
  margin: auto;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-success:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Location Button */
.location-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem auto;
  width: fit-content;
}

.location-btn i {
  font-size: 1.1rem;
}

/* Error Messages */
.error-message,
.field-error {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Switch Form */
.switch-form {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #777;
}

.switch-form a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

/* Profile Photo */
.profile-photo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.profile-photo-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.profile-photo-preview i {
  font-size: 5rem;
  color: #999;
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-controls {
  display: flex;
  gap: 1rem;
}

/* Gender Toggle for Body Types */
.gender-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.gender-btn {
  background-color: var(--accent-color);
  color: var(--text-dark);
  border: none;
  border-radius: 15px;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gender-btn.active {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.gender-btn i {
  font-size: 1.1rem;
}

/* Body Type Cards */
.body-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.body-type-card {
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.body-type-card.selected {
  border-color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.05);
}

.body-type-image {
  height: 100px;
  background-color: #eee;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #999;
}

.body-type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.body-type-card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.body-type-card p {
  font-size: 0.7rem;
  color: #666;
}

/* Skin Type */
.skin-type-image-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.skin-type-image {
  width: 200px;
  height: 150px;
  background-color: #eee;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #999;
}

.skin-type-description {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #666;
  font-size: 0.9rem;
  padding: 0 1rem;
}

/* Completion Step */
.completion-container {
  text-align: center;
  padding: 2rem 0;
}

.completion-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1.5rem;
}

.completion-container h2 {
  margin-bottom: 1rem;
}

.completion-container p {
  color: #666;
  margin-bottom: 2rem;
}

/* Loading Indicator */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .modal-content {
    padding: 1.5rem;
  }
  
  .button-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-success {
    width: 100%;
  }
  
  .body-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gender-toggle {
    flex-direction: column;
    align-items: center;
  }
  
  .gender-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .modal-content {
    padding: 3rem;
  }
  
  .step-title h2 {
    font-size: 1.8rem;
  }
  
  .body-type-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.logo-container{
  display: block;
    margin: auto;
    text-align: center;
}


.logo-container img {

  height: 120px;
  filter: invert(1);
  /* or to blue */
  /* filter: invert(0.5) sepia(1) saturate(5) hue-rotate(175deg); */

}