/* ======================================
   Contact Form Page Styles
   SeaDev LTD - Multi-Step Contact Form
   ====================================== */

/* Page Container */
.contact-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
}

/* Form Container */
.contact-form-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Card Styling */
.contact-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* ======================================
   Progress Stepper
   ====================================== */

.stepper-container {
  background: linear-gradient(135deg, #4154f1 0%, #2c3e9c 100%);
  padding: 30px 40px;
}

.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Progress Line */
.stepper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.stepper-progress {
  position: absolute;
  top: 20px;
  left: 40px;
  height: 3px;
  background: #ffffff;
  z-index: 2;
  transition: width 0.4s ease;
  width: 0%;
}

/* Step Item */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  flex: 1;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.step.active .step-circle {
  background: #ffffff;
  border-color: #ffffff;
  color: #4154f1;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.step.completed .step-circle {
  background: #28a745;
  border-color: #28a745;
  color: #ffffff;
}

.step-label {
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-weight: 500;
  transition: color 0.3s ease;
}

.step.active .step-label,
.step.completed .step-label {
  color: #ffffff;
}

/* ======================================
   Form Steps Content
   ====================================== */

.form-steps-container {
  position: relative;
  overflow: hidden;
}

.form-step {
  display: none;
  padding: 40px;
  animation: fadeIn 0.4s ease;
}

.form-step.active {
  display: block;
}

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

/* Step Header */
.step-header {
  text-align: center;
  margin-bottom: 30px;
}

.step-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.step-header p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group label .required {
  color: #dc3545;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4154f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(65, 84, 241, 0.1);
}

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

.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='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Form Row (2 columns) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

/* Error State */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc3545;
  background: #fff5f5;
}

.form-group .error-message {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

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

/* ======================================
   Navigation Buttons
   ====================================== */

.step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.btn-step {
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-prev {
  background: transparent;
  color: #666;
  border: 2px solid #e0e0e0;
}

.btn-prev:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.btn-prev:disabled {
  opacity: 0;
  pointer-events: none;
}

.btn-next {
  background: linear-gradient(135deg, #4154f1 0%, #2c3e9c 100%);
  color: #ffffff;
  margin-left: auto;
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(65, 84, 241, 0.4);
}

.btn-submit {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: #ffffff;
  margin-left: auto;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* ======================================
   Success/Unlocked State
   ====================================== */

.contact-unlocked {
  display: none;
}

.contact-unlocked.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.contact-form-wrapper.hidden {
  display: none;
}

/* Success Header */
.success-header {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: #ffffff;
  padding: 40px;
  text-align: center;
}

.success-header .success-icon {
  font-size: 4rem;
  margin-bottom: 15px;
}

.success-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.success-header p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

/* Contact Details Grid */
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 30px;
}

@media (max-width: 576px) {
  .contact-details-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* Contact Detail Card */
.contact-detail-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-detail-card:hover {
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.contact-detail-card i {
  font-size: 2rem;
  color: #4154f1;
  margin-bottom: 12px;
}

.contact-detail-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.contact-detail-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.5;
}

.contact-detail-card a {
  color: #4154f1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
}

.contact-detail-card a:hover {
  text-decoration: underline;
}

/* Action Buttons */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0 30px 30px;
}

.btn-action {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: none;
}

.btn-action.btn-primary {
  background: #4154f1;
  color: #ffffff;
}

.btn-action.btn-primary:hover {
  background: #2c3e9c;
  transform: translateY(-2px);
}

.btn-action.btn-outline {
  background: transparent;
  color: #4154f1;
  border: 2px solid #4154f1;
}

.btn-action.btn-outline:hover {
  background: #4154f1;
  color: #ffffff;
}

/* Back to Home Link */
.back-to-home {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #e0e0e0;
}

.back-to-home a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.back-to-home a:hover {
  color: #4154f1;
}

/* ======================================
   Responsive
   ====================================== */

@media (max-width: 576px) {
  .contact-page {
    padding: 80px 15px 30px;
  }

  .stepper-container {
    padding: 20px;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .step-circle {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .stepper::before {
    left: 30px;
    right: 30px;
    top: 17px;
  }

  .stepper-progress {
    left: 30px;
    top: 17px;
  }

  .form-step {
    padding: 25px 20px;
  }

  .step-header h2 {
    font-size: 1.3rem;
  }

  .btn-step {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .contact-actions {
    flex-direction: column;
    padding: 0 20px 20px;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
  }
}
