/**
 * @file
 * Contact Form Styles - Pure HTML/JS Form
 */

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
  background: linear-gradient(180deg, #0A0A0A 0%, #1A1A1A 100%);
  padding: 5rem 0;
  min-height: 100vh;
}

.contact-section .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contact-section .section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CONDITIONS CARDS
   ========================================================================== */

.contact-conditions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.condition-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.condition-card:hover {
  background: rgba(255, 64, 36, 0.05);
  border-color: rgba(255, 64, 36, 0.3);
}

.condition-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #FF4024 0%, #FF6900 100%);
  border-radius: 50%;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* ==========================================================================
   FORM WRAPPER
   ========================================================================== */

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.form-progress {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
}

/* Each step container */
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 150px;
  gap: 0.5rem;
}

/* Line connector - goes FROM current step TO next step */
/* Line is placed AFTER each step marker, extending to the right */
.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(50% + 20px); /* Start from right edge of marker */
  right: calc(-50% + 20px); /* Extend to left edge of next marker */
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 0;
}

/* Colored line for completed steps AND the line from current active step */
.form-progress .progress-step.is-complete:not(:last-child)::after,
.form-progress .progress-step.is-active:not(:last-child)::after {
  background: linear-gradient(90deg, #FF4024, #FF6900);
  box-shadow: 0 0 8px rgba(255, 64, 36, 0.6), 0 0 16px rgba(255, 105, 0, 0.4);
}


/* Marker circle */
.progress-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(20, 20, 20, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.progress-step.is-active .progress-marker {
  background: linear-gradient(135deg, #FF4024 0%, #FF6900 100%);
  border: none;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(255, 64, 36, 0.6);
  transform: scale(1.1);
}

.progress-step.is-complete .progress-marker {
  background: linear-gradient(135deg, #FF4024 0%, #FF6900 100%);
  border: none;
  color: #FFFFFF;
}

/* Step text */
.progress-text {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.progress-step.is-active .progress-text {
  color: #FFFFFF;
  font-weight: 600;
}

.progress-step.is-complete .progress-text {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   FORM STEPS
   ========================================================================== */

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-group .required {
  color: #FF4024;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FF4024;
  background: rgba(255, 64, 36, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 64, 36, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFFFFF' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: #1A1A1A;
  color: #FFFFFF;
}

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

/* Error state */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #FF4444;
  background: rgba(255, 68, 68, 0.05);
}

.error-message {
  display: none;
  color: #FF6666;
  font-size: 0.8125rem;
  margin-top: 0.375rem;
}

.form-group.has-error .error-message {
  display: block;
}

/* ==========================================================================
   FORM ROW (Email + Phone)
   ========================================================================== */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RADIO BUTTONS
   ========================================================================== */

.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 500px) {
  .radio-group {
    grid-template-columns: 1fr;
  }
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  font-weight: 400;
}

.radio-option:hover {
  background: rgba(255, 64, 36, 0.05);
  border-color: rgba(255, 64, 36, 0.3);
}

.radio-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  accent-color: #FF4024;
}

.radio-option:has(input:checked) {
  background: rgba(255, 64, 36, 0.1);
  border-color: #FF4024;
}

.radio-option:has(input:checked) span {
  color: #FF4024;
}

/* ==========================================================================
   CHECKBOX (GDPR)
   ========================================================================== */

.checkbox-group {
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #FF4024;
  flex-shrink: 0;
}

.checkbox-label a {
  color: #FF4024;
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: #FF6900;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* When both buttons visible - space between */
.form-actions:has(.btn-prev:not([style*="display: none"])) {
  justify-content: space-between;
}

.btn-prev,
.btn-next,
.btn-submit {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.btn-prev {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  min-width: 140px;
}

.btn-prev:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.btn-next,
.btn-submit {
  background: linear-gradient(135deg, #FF4024 0%, #FF6900 100%);
  color: #FFFFFF;
  flex: 1;
  max-width: 300px;
}

.btn-next:hover,
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 64, 36, 0.4);
}

/* Single button alignment */
.form-actions:has(.btn-next:only-child) {
  justify-content: flex-end;
}

.btn-submit {
  max-width: none;
}

/* Loading state */
.btn-submit.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

/* ==========================================================================
   SUCCESS MESSAGE
   ========================================================================== */

.form-success {
  text-align: center;
  padding: 3rem 1rem;
}

.form-success .success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #FFFFFF;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.form-success h3 {
  color: #FFFFFF;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.form-success p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 0;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .progress-step {
    max-width: 70px;
  }
  
  .progress-text {
    font-size: 0.5625rem;
  }
  
  .progress-marker {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
  
  .progress-step.is-active .progress-marker {
    transform: scale(1.05);
  }
}

@media (max-width: 500px) {
  .condition-card {
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-prev,
  .btn-next,
  .btn-submit {
    width: 100%;
    max-width: none;
    min-width: auto;
  }
  
  .btn-prev {
    order: 1;
  }
}
