/* ============================================
   Custom Artworks Page — glamorwood.com/custom-requests/
   ============================================ */

/* --- Hero Section --- */
.gw-custom-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 0;
  text-align: center;
}

.gw-custom-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: #7A6055;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  line-height: 1.9;
}

.gw-custom-hero .wp-block-separator {
  border-color: #E8CEBA;
  max-width: 80px;
  margin: 30px auto;
}

/* --- Vertical Timeline --- */
.gw-timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.gw-timeline > .wp-block-heading {
  text-align: center;
  margin-bottom: 50px;
}

/* Vertical line */
.gw-timeline-wrapper {
  position: relative;
  padding-left: 50px;
}

.gw-timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #E8CEBA;
}

/* Each step */
.gw-timeline-step {
  position: relative;
  margin-bottom: 50px;
  padding-left: 0;
}

.gw-timeline-step:last-child {
  margin-bottom: 0;
}

/* Gold dot */
.gw-timeline-step::before {
  content: '';
  position: absolute;
  left: -50px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: #C9A84C;
  border-radius: 50%;
  border: 3px solid #FDFAF8;
  box-shadow: 0 0 0 2px #E8CEBA;
  z-index: 1;
}

/* Step number */
.gw-step-number {
  color: #C9A84C !important;
  font-family: 'Amiri', serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
  line-height: 1 !important;
}

/* Step title */
.gw-timeline-step .wp-block-heading:not(.gw-step-number) {
  color: #3D1F14;
  font-family: 'Amiri', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Step description */
.gw-timeline-step p {
  color: #7A6055;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* --- Custom Order Form Section --- */
.gw-custom-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.gw-custom-form > .wp-block-heading {
  text-align: center;
}

.gw-custom-form > p {
  text-align: center;
  color: #7A6055;
  margin-bottom: 40px;
}

/* WPForms overrides */
.gw-custom-form .wpforms-container .wpforms-field input[type="text"],
.gw-custom-form .wpforms-container .wpforms-field input[type="email"],
.gw-custom-form .wpforms-container .wpforms-field input[type="tel"],
.gw-custom-form .wpforms-container .wpforms-field textarea,
.gw-custom-form .wpforms-container .wpforms-field select {
  border: 1px solid #E8CEBA;
  border-radius: 0;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  background: #fff;
  color: #3D1F14;
  transition: border-color 0.2s ease;
}

.gw-custom-form .wpforms-container .wpforms-field input:focus,
.gw-custom-form .wpforms-container .wpforms-field textarea:focus,
.gw-custom-form .wpforms-container .wpforms-field select:focus {
  border-color: #B26B53;
  outline: none;
  box-shadow: 0 0 0 2px rgba(178, 107, 83, 0.15);
}

.gw-custom-form .wpforms-container .wpforms-field-label {
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  color: #3D1F14;
  font-size: 14px;
}

/* Submit button — Primary CTA */
.gw-custom-form .wpforms-container .wpforms-submit-container button[type="submit"],
.gw-custom-form .wpforms-container button.wpforms-submit {
  background: #8C4A35 !important;
  color: #FDFAF8 !important;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 0 !important;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}

.gw-custom-form .wpforms-container .wpforms-submit-container button[type="submit"]:hover,
.gw-custom-form .wpforms-container button.wpforms-submit:hover {
  background: #B26B53 !important;
}

/* File upload area */
.gw-custom-form .wpforms-container .wpforms-field-file-upload .wpforms-uploader {
  border: 2px dashed #E8CEBA;
  border-radius: 0;
  background: #FDFAF8;
  transition: border-color 0.2s ease;
}

.gw-custom-form .wpforms-container .wpforms-field-file-upload .wpforms-uploader:hover {
  border-color: #C9A84C;
}

/* --- Past Projects Section --- */
.gw-projects-preview {
  text-align: center;
}

.gw-past-projects-grid .wp-block-column {
  overflow: hidden;
}

.gw-past-projects-grid .wp-block-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #F4DFCA;
  transition: transform 0.3s ease;
}

.gw-past-projects-grid .wp-block-image:hover img {
  transform: scale(1.05);
}

.gw-past-projects-grid .wp-element-caption {
  font-family: 'Tajawal', sans-serif;
  color: #7A6055;
  font-size: 14px;
  margin-top: 10px;
}

/* --- Form Note --- */
.gw-form-note {
  margin-top: 30px;
  font-size: 14px;
  font-family: 'Tajawal', sans-serif;
}

.gw-form-note a {
  color: #8C4A35;
  text-decoration: underline;
}

.gw-form-note a:hover {
  color: #B26B53;
}

/* --- RTL Overrides (Arabic) --- */
[dir="rtl"] .gw-timeline-wrapper {
  padding-left: 0;
  padding-right: 50px;
}

[dir="rtl"] .gw-timeline-wrapper::before {
  left: auto;
  right: 7px;
}

[dir="rtl"] .gw-timeline-step::before {
  left: auto;
  right: -50px;
}

[dir="rtl"] .gw-step-number {
  direction: ltr;
  text-align: right;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .gw-custom-hero {
    padding: 40px 20px 0;
  }

  .gw-timeline {
    padding: 0 20px;
  }

  .gw-timeline-wrapper {
    padding-left: 40px;
  }

  .gw-timeline-wrapper::before {
    left: 5px;
  }

  .gw-timeline-step::before {
    left: -40px;
    width: 12px;
    height: 12px;
  }

  .gw-custom-form {
    padding: 0 20px;
  }

  .gw-trust-section {
    padding: 50px 20px;
  }

  .gw-trust-section .wp-block-columns {
    flex-direction: column !important;
  }

  [dir="rtl"] .gw-timeline-wrapper {
    padding-right: 40px;
  }

  [dir="rtl"] .gw-timeline-wrapper::before {
    right: 5px;
  }

  [dir="rtl"] .gw-timeline-step::before {
    right: -40px;
  }
}
