/* 
 * Contact Form Styles
 * Styles for the contact form on contact.html
 * Created: June 15, 2025
 */

/* Contact Form Container */
.contact-form-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 700px;
  margin: 0 auto;
  padding: 35px;
  background: var(--card-color, #ffffff);
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color, #e4e7f2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.contact-form-container:hover {
  box-shadow: 0 20px 60px rgba(106, 75, 255, 0.15);
  transform: translateY(-5px);
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gradient-start, #6a4bff), var(--gradient-end, #ff4bae));
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.form-group:focus-within {
  transform: translateX(5px);
}

/* Form Labels */
.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading-color, #2d2d3a);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Form Inputs */
.form-group input,
.form-group select,
.form-group textarea {
  padding: 16px 18px;
  border: 2px solid var(--border-color, #e4e7f2);
  border-radius: 12px;
  background-color: var(--input-background, #f8f9fd);
  color: var(--text-color, #2d2d3a);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* Hover State */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #c8cfe0;
  background-color: #ffffff;
}

/* Focus State */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color, #6a4bff);
  box-shadow: 0 0 0 4px rgba(106, 75, 255, 0.15);
  background-color: var(--card-color, #ffffff);
}

/* Invalid State */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown),
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--error-color, #ff5252);
}

/* Error Message */
.error-message {
  color: var(--error-color, #ff5252);
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* Placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light, #a1a8b9);
  opacity: 0.7;
}

/* Select Element Custom Styling */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a4bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Textarea */
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Form Actions Container */
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Primary Button */
.form-actions .cta-button {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--gradient-start, #6a4bff), var(--gradient-end, #ff4bae));
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(106, 75, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-actions .cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  transform: translateY(-100%);
  transition: transform 0.6s ease;
}

.form-actions .cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(106, 75, 255, 0.35);
}

.form-actions .cta-button:hover::before {
  transform: translateY(0);
}

.form-actions .cta-button:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(106, 75, 255, 0.3);
}

.form-actions .cta-button i {
  font-size: 1.1rem;
}

/* Secondary Button */
.form-actions .button.secondary {
  padding: 16px 28px;
  background-color: var(--border-color, #e4e7f2);
  color: var(--text-color, #2d2d3a);
  border: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.form-actions .button.secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  transform: translateY(-100%);
  transition: transform 0.6s ease;
}

.form-actions .button.secondary:hover {
  background-color: #d8dbe9;
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.form-actions .button.secondary:hover::before {
  transform: translateY(0);
}

.form-actions .button.secondary:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.form-actions .button.secondary i {
  font-size: 1rem;
  color: var(--text-light, #667085);
}

/* Form Tooltip */
.form-tooltip {
  font-size: 0.85rem;
  color: var(--text-light, #a1a8b9);
  margin-top: 5px;
  line-height: 1.4;
}

/* Required Field Indicator */
.form-group label::after {
  content: ' *';
  color: var(--accent-color, #ff6b97);
  display: inline-block;
  margin-left: 2px;
}

.form-group label[for="website"]::after {
  display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .contact-form-container {
    padding: 20px;
  }
  
  .form-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .form-actions .cta-button,
  .form-actions .button.secondary {
    width: 100%;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-form-container {
  animation: fadeIn 0.5s ease-out;
}
