/* Form Component System */

/* Base Form Control */
.form-control {
  background: var(--form-bg);
  border: none;
  border-radius: var(--border-radius-md);
  padding: 15px;
  font-size: var(--font-size-medium);
  height: var(--form-control-height);
  width: 100%;
  box-shadow: none;
  color: var(--black);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-primary);
  transition: all 0.3s ease;
}

.form-control:focus {
  box-shadow: var(--box-shadow-focus) !important;
  outline: none;
  background-color: var(--white);
}

/* Profile Form - Basic Information Fields */
.profile-form .form-control {
  background: var(--form-bg);
  border: none;
  border-radius: var(--border-radius-md);
  padding: 15px;
  font-size: var(--font-size-medium);
  height: var(--form-control-height);
  box-shadow: none;
  color: var(--black);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-md);
}

.profile-form input::placeholder {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-medium);
  color: #000000b3;
}

/* Select Elements */
.form-select {
  background-color: #f7f7f7;
  border: none;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md) 15px;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-medium);
  color: #000000b3;
  width: 100%;
  cursor: pointer;
}

.form-select:focus {
  box-shadow: var(--box-shadow-focus) !important;
  outline: none;
}

.form-select option {
  background-color: #f7f7f7 !important;
  padding: 12px;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-medium);
  color: #000000b3;
  border: none !important;
  border-radius: var(--border-radius-md) !important;
}

/* Textarea */
.about-textarea {
  background-color: #f7f7f7;
  border: none;
  border-radius: var(--border-radius-md);
  resize: none;
  padding: var(--spacing-md) 15px;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-medium);
  color: #000000b3;
  width: 100%;
  min-height: 120px;
}

.about-textarea:focus {
  box-shadow: var(--box-shadow-focus);
  outline: none;
}

/* File Upload Box */
.upload-box {
  background-color: #f7f7f7;
  border-radius: var(--border-radius-md);
  height: 100%;
  min-height: 160px;
  text-align: center;
  color: var(--black);
  font-weight: var(--font-weight-medium);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.upload-box:hover {
  background-color: #eeeeee;
}

.upload-box i {
  color: #1a2746;
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.upload-box .file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-box span {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  color: #000000b3;
}

.upload-icon {
  width: 50px;
  margin-bottom: 15px;
}

/* Custom Checkboxes */
.checkbox-label {
  display: flex;
  align-items: center;
  color: #1C2A3A;
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #0d1b2a;
  border-radius: 2px;
  margin-right: var(--spacing-sm);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:hover {
  border-color: var(--primary-blue);
}

/* Custom Radio Buttons - Shift Schedule */
.shift-schedule {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.shift-btn {
  border: 2px solid var(--black);
  background: var(--white);
  color: #333;
  padding: var(--spacing-lg) 45px;
  border-radius: 6px;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
  width: 170px;
  cursor: pointer;
  text-align: center;
}

.shift-btn:hover {
  background: #f0f0f0;
}

.shift-btn.active {
  background: #4A90E2;
  color: var(--white);
  border-color: #4A90E2;
}

/* Form Groups and Layout */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-medium);
  color: var(--black);
  margin-bottom: var(--spacing-xs);
}

/* Property Options Layout */
.property-options {
  display: flex;
  gap: 25px 40px;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.amenities-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px 20px;
}

/* Gender Options */
.gender-options {
  display: flex;
  gap: 3rem;
  padding-left: 15px;
  flex-wrap: wrap;
}

/* Bed Bath Selector */
.bed-bath-box {
  background: #f7f7f7;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-medium);
  color: #000000b3;
  text-align: center;
  min-width: 180px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bed-bath-box:hover {
  background-color: #eeeeee;
}

.bed-bath-box.active {
  background-color: var(--primary-blue);
  color: var(--white);
}


/* Form Validation States */
.form-control.is-invalid {
  border: 2px solid #dc3545;
  background-color: #fff5f5;
}

.form-control.is-valid {
  border: 2px solid #28a745;
  background-color: #f8fff9;
}

.invalid-feedback {
  color: #dc3545;
  font-size: var(--font-size-small);
  margin-top: 5px;
}

.valid-feedback {
  color: #28a745;
  font-size: var(--font-size-small);
  margin-top: 5px;
}

/* Responsive Forms */
@media (max-width: 768px) {
  .amenities-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 15px;
  }
  
  .property-options {
    gap: 15px 20px;
  }
  
  .shift-schedule {
    gap: var(--spacing-xs);
  }
  
  .shift-btn {
    width: 140px;
    padding: var(--spacing-md) var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .amenities-options {
    grid-template-columns: 1fr;
  }
  
  .gender-options {
    gap: 1.5rem;
    padding-left: 0;
  }
  
  
  .bed-bath-box {
    min-width: 140px;
    padding: var(--spacing-sm) var(--spacing-md);
  }
}
