@import '../css-edit/volunteer-edit.css';

/* Base styles from the original design */
.volunteer-container {
  width: 100%;
  display: flex;
  overflow: auto;
  min-height: 100vh;
  align-items: center;
  flex-direction: column;
  margin-top: 50px;
}

.volunteer-main {
  width: 100%;
  height: auto;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  flex-direction: column;
}

.volunteer-header {
  gap: 10px;
  display: flex;
  padding: 60px 86px;
  align-self: stretch;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  /* background-color: var(--volunteer-color-background-gray); */
  margin-top: 120px;
}

.volunteer-header-content {
  gap: 12px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.volunteer-title {
  color: var(--volunteer-color-text-primary);
  height: auto;
  font-size: var(--volunteer-font-size-xlarge);
  font-style: Semi Bold;
  text-align: center;
  font-family: var(--volunteer-font-family-main);
  font-weight: 700;
  line-height: normal;
  font-stretch: normal;
  text-decoration: none;
}

.volunteer-subtitle {
  color: var(--volunteer-color-text-primary);
  width: 856px;
  height: auto;
  font-size: var(--volunteer-font-size-large);

  text-align: center;
  font-family: var(--volunteer-font-family-main);
  font-weight: 400;
  line-height: normal;
  font-stretch: normal;
  text-decoration: none;
}


.form-bg {
  width: 100%;
  background-color: var(--volunteer-color-background-light);
}

/* Form Container Styles */
.volunteer-form {
  gap: 10px;
  display: flex;
  justify-content: center;
  padding: 56px 148px;
  align-items: center;
  flex-shrink: 0;
  align-self: center;
}

.form-container {
  gap: 10px;
  display: flex;
  padding: 56px;
  align-items: center;
  justify-content: center;
 
  border-radius: 24px;
  
  max-width: 1000px;
}

.form-wrapper {
  gap: 56px;
  width: 1000px;
  max-width: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  flex-direction: column;
}

.form-section {
  gap: 56px;
  display: flex;
  align-self: stretch;
  align-items: flex-start;
  flex-direction: column;
}

.form-group {
  gap: 24px;
  display: flex;
  align-self: stretch;
  align-items: flex-start;
  flex-direction: column;
}

.section-title {
  color: var(--volunteer-color-text-primary);
  height: auto;
  font-size: var(--volunteer-font-size-large);
  align-self: stretch;
  font-style: Semi Bold;
  text-align: left;
  font-family: Inter;
  font-weight: 700;
  line-height: normal;
  font-stretch: normal;
  text-decoration: none;
}

.section-header {
  gap: 12px;
  display: flex;
  flex-direction: column;
}

.section-subtitle {
  color: var(--volunteer-color-text-primary);
  height: auto;
  font-size: var(--volunteer-font-size-large);
  font-style: Regular;
  font-family: var(--volunteer-font-family-main);
  font-weight: 400;
  line-height: normal;
  font-stretch: normal;
  text-decoration: none;
}

.field-label {
  color: var(--volunteer-color-text-primary);
  height: auto;
  font-size: var(--volunteer-font-size-medium);
  font-style: Semi Bold;
  font-family: var(--volunteer-font-family-main);
  font-weight: 600;
  line-height: normal;
  font-stretch: normal;
  text-decoration: none;
  margin-top: 16px;
  margin-bottom: 8px;
}

/* Form Layout Styles */
.form-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

/* Form Field Styles */
.form-field {
  position: relative;
  width: calc(50% - 12px);
  max-width: 600px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  border-color: var(--volunteer-color-text-placeholder);
  border-style: solid;
  border-width: 1px;
  border-radius: 8px;
  background: transparent;
}

.form-field.full-width {
  max-width: 100%;
  flex: 1 1 100%;
}

/* Select and Input Wrappers */
.select-wrapper,
.input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-grow: 1;
}

.select-wrapper {
  gap: 10px;
  justify-content: space-between;
  overflow: hidden;
}

.input-wrapper {
  gap: 10px;
  position: relative;
  width: 100%;
}

/* Checkbox Styles */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.checkbox-item.full-width {
  grid-column: 1 / -1;
  flex: 1 1 100%;
}

/* Form Input Styles */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 0;
  font-family:var(--volunteer-font-family-main);
  font-size: var(--volunteer-font-size-medium);
  color: var(--volunteer-color-text-primary);
  background-color: transparent;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  color: var(--volunteer-color-text-primary);
}

.form-textarea:focus {
  outline: none;
  color: var(--volunteer-color-text-placeholder);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--volunteer-color-text-placeholder);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  align-items: flex-start;
}

/* Select Dropdown Styles */
.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--volunteer-color-text-primary);
  pointer-events: none;
  font-size: var(--volunteer-font-size-small);
}

/* Checkbox Styles */
.form-checkbox {
  width: 20px;
  height: 20px;
  border: var(--volunteer-color-text-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-checkbox:checked {
  background-color: var(--volunteer-color-text-primary);
  border-color: var(--volunteer-color-text-primary);
}

.checkbox-label {
  font-family: var(--volunteer-font-family-main);
  font-size: var(--volunteer-font-size-medium);
  color: var(--volunteer-color-text-primary);
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
}

/* File Upload Styles */
.file-upload-section {
  width: 100%;
  margin-top: 16px;
}

.file-upload-wrapper {
  display: flex;
  align-items: center;
}

/* Submit Button */
.submit-btn {
  gap: 10px;
  display: flex;
  color: var(--volunteer-color-text-on-dark);
  padding: 16px 32px;
  align-items: center;
  border-color: var(--volunteer-color-border);
  border-style: solid;
  border-width: 0px;
  border-radius: 12px;
  background-color: var(--volunteer-color-background-button);
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: center;
}

.submit-btn:hover {
  background-color: var(--volunteer-color-background-hover);
}

.btn-text {
  color: var(--volunteer-color-text-on-button);
  height: auto;
  font-size: var(--volunteer-font-size-medium);
  font-style: Semi Bold;
  text-align: left;
  font-family: var(--volunteer-font-family-main);
  font-weight: 700;
  line-height: normal;
  font-stretch: normal;
  text-decoration: none;
}

/* File Upload Styles */
.file-input {
  display: none;
}

.file-label {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  background-color: var(--volunteer-color-background-button);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.file-label:hover {
  background-color: var(--volunteer-color-background-hover);
}

.file-label i {
  font-size: var(--volunteer-font-size-medium);
  color: var(--volunteer-color-text-on-button);
}

.file-label span {
  font-family: var(--volunteer-font-family-main);
  font-size: var(--volunteer-font-size-medium);
  font-weight: 500;
  color: var(--volunteer-color-text-on-button);
}

/* Responsive adjustments */
@media(max-width: 991px) {
  .form-wrapper {
    width: 100%;
    max-width: 991px;
  }
  
  .form-row {
    width: 100%;
  }
  
  .form-field {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .select-wrapper {
    gap: 10px;
  }
}

@media(max-width: 767px) {
  .volunteer-header {
    /* padding: 30px 20px; */
    /* margin-top: 80px; */
    margin-top: 120px;
  }
  
  .volunteer-form {
    padding: 20px 15px;
  }
  
  .form-container {
    padding: 20px 15px;
    margin: 0 10px;
  }
  
  .form-wrapper {
    gap: 30px;
    width: 100%;
  }
  
  .form-section {
    gap: 30px;
  }
  
  .volunteer-title {
    font-size: 28px;
  }
  
  .volunteer-subtitle {
    font-size: var(--volunteer-font-size-medium);
    width: 100%;
    line-height: 1.5;
  }
  
  .section-title {
    font-size: var(--volunteer-font-size-medium);
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    font-size: var(--volunteer-font-size-medium);
    padding: 12px;
  }
  
  .btn-text {
    font-size: var(--volunteer-font-size-medium);
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .form-field {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
  }
  
  .submit-btn {
    width: 100%;
    padding: 14px 20px;
  }
}

/* Icon positioning for inputs */
.input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--volunteer-color-text-primary);
  font-size: var(--volunteer-font-size-medium);
  height: 21px;
  flex-shrink: 0;
  pointer-events: none;
}
