/**
 * Request Service Page Styles
 *
 * @package GFX_Theme
 * @since 1.0.0
 */

/* ========================================
   PAGE HEADER
   ======================================== */

.gfx-request-header {
  background: linear-gradient(180deg, #1E88E5 0%, var(--gfx-blue-medium) 100%);
  color: var(--gfx-white);
  padding: var(--gfx-space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Grid pattern overlay */
.gfx-request-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 30px,
      rgba(255,255,255,0.035) 30px,
      rgba(255,255,255,0.035) 31px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 30px,
      rgba(255,255,255,0.035) 30px,
      rgba(255,255,255,0.035) 31px
    );
  background-size: 31px 31px;
  pointer-events: none;
}

.gfx-request-header .gfx-eyebrow {
  color: var(--gfx-white);
}

.gfx-request-header .gfx-page-title {
  color: #ffd900;
  margin-bottom: var(--gfx-space-3);
}

.gfx-request-header .gfx-lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   REQUEST FORM SECTION
   ======================================== */

.gfx-request-content {
  padding: var(--gfx-space-16) 0;
  background-color: var(--gfx-gray-lightest);
  background-image: radial-gradient(#DFDFDF 1px, transparent 1px);
  background-size: 24px 24px;
}

.gfx-request-form-wrapper {
  background: var(--gfx-white);
  border-radius: var(--gfx-radius-xl);
  padding: var(--gfx-space-10);
  box-shadow: var(--gfx-shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.gfx-request-form-title {
  font-size: var(--gfx-text-2xl);
  color: var(--gfx-primary-dark);
  margin-bottom: var(--gfx-space-2);
  text-align: center;
}

.gfx-request-form-subtitle {
  color: var(--gfx-gray);
  text-align: center;
  margin-bottom: var(--gfx-space-8);
}

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

.gfx-form-steps {
  display: flex;
  justify-content: center;
  margin-bottom: var(--gfx-space-8);
  position: relative;
}

.gfx-form-step-indicator {
  display: flex;
  align-items: center;
  gap: var(--gfx-space-2);
  padding: var(--gfx-space-2) var(--gfx-space-4);
  color: var(--gfx-gray);
  font-size: var(--gfx-text-sm);
  font-weight: var(--gfx-font-medium);
}

.gfx-form-step-indicator.active {
  color: var(--gfx-primary);
}

.gfx-form-step-indicator.completed {
  color: var(--gfx-success);
}

.gfx-form-step-number {
  width: 28px;
  height: 28px;
  background: var(--gfx-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--gfx-font-bold);
}

.gfx-form-step-indicator.active .gfx-form-step-number {
  background: var(--gfx-primary);
  color: var(--gfx-white);
}

.gfx-form-step-indicator.completed .gfx-form-step-number {
  background: var(--gfx-success);
  color: var(--gfx-white);
}

.gfx-form-step-divider {
  width: 40px;
  height: 2px;
  background: var(--gfx-border-color);
  margin: 0 var(--gfx-space-2);
  align-self: center;
}

/* ========================================
   SERVICE TYPE SELECTION
   Matches home page service cards style
   ======================================== */

.gfx-service-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gfx-space-4);
  margin-bottom: var(--gfx-space-6);
}

.gfx-service-type-option {
  position: relative;
  height: 100%;
}

.gfx-service-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gfx-service-type-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gfx-space-3);
  padding: var(--gfx-space-6);
  min-height: 160px;
  height: 100%;
  background: var(--gfx-gray-lightest);
  border: none;
  border-radius: var(--gfx-radius-xl);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
}

.gfx-service-type-option label:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  background: var(--gfx-white);
}

.gfx-service-type-option input:checked + label {
  background: var(--gfx-white);
  box-shadow: 0 0 0 3px var(--gfx-primary), 0 12px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.gfx-service-type-option i {
  font-size: 3rem;
  color: var(--gfx-gray-dark);
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.gfx-service-type-option label:hover i,
.gfx-service-type-option input:checked + label i {
  color: var(--gfx-primary);
  transform: scale(1.05);
}

.gfx-service-type-option span {
  font-weight: var(--gfx-font-semibold);
  color: var(--gfx-primary-dark);
  text-align: center;
}

/* ========================================
   URGENCY SELECTION
   ======================================== */

.gfx-urgency-options {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--gfx-space-3);
  margin-bottom: var(--gfx-space-6);
}

.gfx-urgency-option {
  position: relative;
  flex: 1;
  min-width: 120px;
  display: flex;
}

.gfx-urgency-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gfx-urgency-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--gfx-space-4) var(--gfx-space-5);
  background: var(--gfx-gray-lightest);
  border: none;
  border-radius: var(--gfx-radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--gfx-text-sm);
  font-weight: var(--gfx-font-semibold);
  color: var(--gfx-gray-dark);
}

.gfx-urgency-option label:hover {
  background: var(--gfx-white);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.gfx-urgency-option input:checked + label {
  background: var(--gfx-white);
  box-shadow: 0 0 0 3px var(--gfx-primary), 0 8px 16px rgba(0, 0, 0, 0.06);
  color: var(--gfx-primary);
  transform: translateY(-2px);
}

.gfx-urgency-option.emergency label {
  color: var(--gfx-gray-dark);
}

.gfx-urgency-option.emergency input:checked + label {
  background: var(--gfx-white);
  box-shadow: 0 0 0 3px var(--gfx-error), 0 8px 16px rgba(0, 0, 0, 0.06);
  color: var(--gfx-error);
}

/* ========================================
   DELIVERY METHOD SELECTION
   ======================================== */

.gfx-delivery-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gfx-space-4);
  margin-bottom: var(--gfx-space-6);
}

.gfx-delivery-option {
  position: relative;
}

.gfx-delivery-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gfx-delivery-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gfx-space-2);
  padding: var(--gfx-space-5);
  background: var(--gfx-gray-lightest);
  border: none;
  border-radius: var(--gfx-radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.gfx-delivery-option label:hover {
  background: var(--gfx-white);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.gfx-delivery-option input:checked + label {
  background: var(--gfx-white);
  box-shadow: 0 0 0 3px var(--gfx-primary), 0 8px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.gfx-delivery-option i {
  font-size: 2rem;
  color: var(--gfx-gray-dark);
  transition: color 0.3s ease;
}

.gfx-delivery-option input:checked + label i {
  color: var(--gfx-primary);
}

.gfx-delivery-label {
  font-weight: var(--gfx-font-semibold);
  color: var(--gfx-dark);
}

.gfx-delivery-desc {
  font-size: var(--gfx-text-sm);
  color: var(--gfx-gray);
}

/* ========================================
   INFO BOX & HELPER TEXT
   ======================================== */

.gfx-info-box {
  display: flex;
  gap: var(--gfx-space-4);
  padding: var(--gfx-space-5);
  background: var(--gfx-gray-lightest);
  border-radius: var(--gfx-radius-lg);
  border-left: 4px solid var(--gfx-yellow);
}

.gfx-info-box i {
  font-size: 1.5rem;
  color: var(--gfx-yellow);
  flex-shrink: 0;
}

.gfx-info-box strong {
  color: var(--gfx-dark);
  display: block;
  margin-bottom: var(--gfx-space-1);
}

.gfx-info-box p {
  margin: 0 0 var(--gfx-space-2);
  color: var(--gfx-gray-dark);
}

.gfx-map-link {
  display: inline-flex;
  align-items: center;
  gap: var(--gfx-space-1);
  font-size: var(--gfx-text-sm);
  color: var(--gfx-primary);
  font-weight: var(--gfx-font-medium);
  text-decoration: none;
}

.gfx-map-link:hover {
  text-decoration: underline;
}

.gfx-form-help {
  display: block;
  font-size: var(--gfx-text-sm);
  color: var(--gfx-gray);
  margin-top: var(--gfx-space-1);
}

/* ========================================
   INPUT WITH ICON
   ======================================== */

.gfx-input-with-icon {
  position: relative;
}

.gfx-input-with-icon i {
  position: absolute;
  left: var(--gfx-space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: #25D366;
  pointer-events: none;
}

.gfx-input-with-icon .gfx-form-control {
  padding-left: calc(var(--gfx-space-4) + 1.5rem + var(--gfx-space-2));
}

/* ========================================
   FORM FIELDS
   ======================================== */

.gfx-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gfx-space-5);
}

.gfx-form-group {
  margin-bottom: var(--gfx-space-5);
}

.gfx-form-label {
  display: block;
  font-weight: var(--gfx-font-medium);
  color: var(--gfx-dark);
  margin-bottom: var(--gfx-space-2);
}

.gfx-form-label .required {
  color: var(--gfx-error);
}

.gfx-form-control {
  width: 100%;
  padding: var(--gfx-space-3) var(--gfx-space-4);
  font-size: var(--gfx-text-base);
  border: 1px solid var(--gfx-border-color);
  border-radius: var(--gfx-radius);
  transition: all var(--gfx-transition);
}

.gfx-form-control:focus {
  outline: none;
  border-color: var(--gfx-primary);
  box-shadow: 0 0 0 3px rgba(var(--gfx-primary-rgb), 0.15);
}

.gfx-form-control.error {
  border-color: var(--gfx-error);
}

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

/* ========================================
   SUBMIT SECTION
   ======================================== */

.gfx-form-submit-section {
  margin-top: var(--gfx-space-8);
  padding-top: var(--gfx-space-6);
  border-top: 1px solid var(--gfx-border-color);
}

.gfx-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gfx-space-2);
  width: 100%;
  padding: var(--gfx-space-4) var(--gfx-space-8);
  background: var(--gfx-primary);
  border: 2px solid var(--gfx-primary);
  color: var(--gfx-white);
  font-weight: var(--gfx-font-bold);
  font-size: var(--gfx-text-lg);
  border-radius: var(--gfx-radius);
  cursor: pointer;
  transition: all var(--gfx-transition);
}

.gfx-form-submit:hover,
.gfx-form-submit:focus {
  background: var(--gfx-primary-dark);
  border-color: var(--gfx-primary-dark);
  color: var(--gfx-white);
  transform: translateY(-1px);
  box-shadow: var(--gfx-shadow);
}

.gfx-form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Form messages */
.gfx-form-message {
  padding: var(--gfx-space-4);
  border-radius: var(--gfx-radius);
  margin-bottom: var(--gfx-space-5);
  display: none;
}

.gfx-form-message--success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--gfx-success);
  color: var(--gfx-success);
  display: block;
}

.gfx-form-message--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--gfx-error);
  color: var(--gfx-error);
  display: block;
}

/* Honeypot */
.gfx-hp-field {
  position: absolute;
  left: -9999px;
}

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

@media (max-width: 767.98px) {
  .gfx-request-content {
    padding: var(--gfx-space-10) 0;
  }

  .gfx-request-form-wrapper {
    padding: var(--gfx-space-6);
  }

  .gfx-form-steps {
    flex-wrap: wrap;
    gap: var(--gfx-space-2);
  }

  .gfx-form-step-divider {
    display: none;
  }

  .gfx-service-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gfx-service-type-option label {
    min-height: 120px;
    justify-content: center;
    padding: var(--gfx-space-4);
  }

  .gfx-service-type-option i {
    height: auto;
  }

  .gfx-service-type-option span {
    margin-top: 0;
  }

  .gfx-urgency-options {
    flex-direction: column;
  }

  .gfx-delivery-options {
    grid-template-columns: 1fr;
  }

  .gfx-info-box {
    flex-direction: column;
    text-align: center;
  }
}

/* Very narrow viewports - single column for device cards */
@media (max-width: 400px) {
  .gfx-service-type-grid {
    grid-template-columns: 1fr;
  }

  .gfx-service-type-option label {
    min-height: 100px;
  }
}
