/* Form Section */
.form-section {
  padding: 40px 0;
  background-color: #ffffff;
}

.form-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.form-intro {
  text-align: center;
  margin-bottom: 40px;
}

.form-intro p {
  font-size: 16px;
  font-weight: 500;
  line-height: 25.6px;
  color: #251D03;
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 39px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 16px;
  font-weight: 500;
  line-height: 25.6px;
  color: #251D03;
  display: flex;
  align-items: center;}

.form-label::after {
  content: '*';
  color: #B33D31;
  margin-left: 2px;
}

.form-label:not([for="remarks"]):not([class*="wedding"]):not([class*="guests"])::after {
  content: '*';
}

.form-input,
.form-select,
.form-textarea {
  background: #FAFAFA;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22.4px;
  color: #251D03;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #B33D31;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #888888;
}

.form-textarea {
  min-height: 132px;
  resize: vertical;
}

/* Date Group */
.date-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.form-select {
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23B33D31"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  appearance: none;
  cursor: pointer;
  width: 240px;
}

.form-select-small {
  width: 120px;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  border: 1px solid #CCCCCC;
  border-radius: 3px;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
  appearance: none;
}

.checkbox-item input[type="checkbox"]:checked {
  background: #B33D31;
  border-color: #B33D31;
}

.checkbox-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 11.72px;
  height: 12.62px;
  background-image: url('https://codia-f2c.s3.us-west-1.amazonaws.com/image/2025-07-31/GxCYAmCmG0.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.checkbox-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 22.4px;
  color: #251D03;
  cursor: pointer;
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-item input[type="radio"] {
  width: 17px;
  height: 17px;
  border: 1px solid #CCCCCC;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
  appearance: none;
}

.radio-item input[type="radio"]:checked {
  background: #B33D31;
  border-color: #B33D31;
}

.radio-item input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.radio-label {
  font-size: 16px;
  font-weight: 400;
  line-height: 25.6px;
  color: #251D03;
  cursor: pointer;
}

/* Form Notice */
.form-notice {
  text-align: center;
  margin-top: 20px;
}

.form-notice p {
  font-size: 14px;
  font-weight: 400;
  line-height: 22.4px;
  color: #251D03;
}

/* Form Submit */
.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 44px;
  background: linear-gradient(135deg, #B33D31 0%, #9a2f25 100%);
  color: white;
  border: none;
  border-radius: 80px;
  font-size: 16px;
  font-weight: 600;
  line-height: 28.8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 232px;
  height: 53px;
}

.submit-button:hover {
  background: linear-gradient(135deg, #9a2f25 0%, #7a241d 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(179, 61, 49, 0.3);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button svg {
  width: 24px;
  height: 24px;
}

/* Form Validation Styles */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #e74c3c;
  background-color: #fdf2f2;
}

.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
}

.form-group.success .form-input,
.form-group.success .form-select,
.form-group.success .form-textarea {
  border-color: #27ae60;
  background-color: #f2fdf2;
}

/* Responsive Form */
@media (max-width: 768px) {
  .form-container {
    margin-left: 0;
    padding: 0 10px;
  }
  
  .contact-form {
    padding: 20px;
    gap: 24px;
  }
  
  .date-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-select,
  .form-select-small {
    width: 100%;
  }
  
  .radio-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .checkbox-group {
    gap: 12px;
  }
  
  .submit-button {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .form-intro p {
    font-size: 14px;
    line-height: 22px;
  }
  
  .form-label {
    font-size: 14px;
  }
  
  .radio-label,
  .checkbox-label {
    font-size: 14px;
  }
}
