/* Custom Furniture Page Styles */

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 75vh;
  background: linear-gradient(
      135deg,
      rgba(20, 184, 166, 0.8) 0%,
      rgba(6, 182, 212, 0.7) 25%,
      rgba(59, 130, 246, 0.6) 75%,
      rgba(147, 51, 234, 0.5) 100%
    ),
    url("../custom-furniture.jpg") center/cover no-repeat;
  /* Vibrant teal to purple gradient overlay */
  background-blend-mode: overlay;
  background-color: #0d9488; /* Modern teal fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 70px;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.3) 0%,
    rgba(30, 41, 59, 0.2) 50%,
    rgba(51, 65, 85, 0.1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.3) 0%,
    rgba(30, 41, 59, 0.2) 50%,
    rgba(51, 65, 85, 0.1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  animation: fadeInUp 1s ease;
}

.hero-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.9),
    rgba(139, 92, 246, 0.9)
  );
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.3);
  animation: pulse 2s infinite;
}

.hero-icon i {
  font-size: 42px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  font-family: "Inter", sans-serif;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 400;
  color: #f8fafc; /* Changed to a brighter white for better contrast */
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  }
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 30% 70%,
      rgba(139, 69, 19, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(61, 124, 71, 0.05) 0%,
      transparent 50%
    );
  animation: float 20s infinite linear;
  z-index: 0;
}

.how-it-works .container {
  position: relative;
  z-index: 2;
}

.how-it-works h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 80px;
  position: relative;
}

.how-it-works h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #8b4513, #3d7c47);
  border-radius: 2px;
}

.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.steps-container::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #8b4513 10%,
    #3d7c47 50%,
    #8b4513 90%,
    transparent 100%
  );
  z-index: 1;
}

.step {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
  background: white;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 69, 19, 0.1);
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(139, 69, 19, 0.2);
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #8b4513, #3d7c47);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 25px;
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
  position: relative;
  z-index: 3;
  border: 3px solid white;
}

.step-number::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, #8b4513, #3d7c47);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: pulse-ring 2s infinite;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #8b4513, #3d7c47);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 400;
}

@keyframes float {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* Request Form Section */
.request-form-section {
  padding: 80px 0;
  background: var(--light-color);
}

.form-header {
  text-align: center;
  margin-bottom: 48px;
}

.form-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-color);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-section {
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(61, 124, 71, 0.2);
}

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

/* File Upload Area */
.file-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--light-color);
}

.file-upload-area:hover {
  border-color: var(--secondary-color);
  background: #f0fdf4; /* A light green tint */
}

.upload-content i {
  font-size: 32px;
  color: var(--gray-color);
  margin-bottom: 12px;
}

.upload-content p {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 4px;
}

.upload-content span {
  font-size: 14px;
  color: #6b7280;
}

.uploaded-files {
  margin-top: 16px;
}

.uploaded-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--light-color);
  border-radius: 6px;
  margin-bottom: 8px;
}

.uploaded-file span {
  font-size: 14px;
  color: var(--dark-color);
}

.remove-file {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
}

/* Submit Button */
.form-actions {
  text-align: center;
  margin-top: 40px;
}

.submit-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  min-width: 200px;
  justify-content: center;
}

.submit-btn:hover {
  background: #2d5934; /* Darker green */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(61, 124, 71, 0.3);
}

.submit-btn:disabled {
  background: var(--gray-color);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Why Choose Custom Section */
.why-custom-section {
  padding: 80px 0;
  background: white;
}

.why-custom-section h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 64px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--light-color);
  border-radius: 12px;
  transition: all 0.3s;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background: #e8f5e8; /* Light green */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.benefit-icon i {
  font-size: 28px;
  color: var(--secondary-color);
}

.benefit-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 12px;
}

.benefit-card p {
  color: var(--gray-color);
  line-height: 1.6;
}

/* Loading State */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading .submit-btn {
  background: var(--gray-color);
}

.loading .submit-btn::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success Message */
.success-message {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: none;
}

.success-message.show {
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 60px;
    max-width: 600px;
  }

  .steps-container::before {
    display: none;
  }

  .step {
    max-width: 400px;
    width: 100%;
  }

  .step-number::before {
    display: none;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-container {
    padding: 32px 24px;
  }

  .hero-section {
    height: 60vh;
    min-height: 500px;
  }

  .hero-icon {
    width: 90px;
    height: 90px;
  }

  .hero-icon i {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-icon {
    width: 80px;
    height: 80px;
  }

  .hero-icon i {
    font-size: 34px;
  }

  .how-it-works {
    padding: 80px 0;
  }

  .how-it-works h2 {
    margin-bottom: 60px;
  }

  .step {
    padding: 25px 15px;
  }

  .step-number {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-section {
    height: 50vh;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 3.5vw, 2rem);
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .hero-icon i {
    font-size: 30px;
  }

  .how-it-works {
    padding: 60px 0;
  }

  .how-it-works h2 {
    margin-bottom: 50px;
  }

  .steps-container {
    gap: 40px;
  }

  .step {
    padding: 20px 15px;
  }

  .step-number {
    width: 55px;
    height: 55px;
    font-size: 22px;
    margin-bottom: 20px;
  }

  .step h3 {
    font-size: 1.1rem;
  }

  .step p {
    font-size: 0.9rem;
  }

  .form-container {
    padding: 24px 16px;
  }
}
