/* ===== Projects Page Styles ===== */

.projects-page-wrapper {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  text-align: center;
}

.projects-page-wrapper * {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hero Section - REDUCED SPACE */
.projects-hero {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  color: white;
  padding: 10px 5px 5px 5px; /* Top: 10px, Right: 5px, Bottom: 5px, Left: 5px */
  width: 100%;
}

.projects-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0; /* Changed from 0.1rem to 0 */
  margin-top: 0; /* Add this to remove any top margin */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  padding: 0; /* Ensure no padding */
}

.projects-hero-subtitle {
  font-size: 1.4rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Main Content */
.projects-main-content {
  padding: 4rem 0;
  width: 100%;
}

/* Intro Section */
.projects-intro-section {
  margin-bottom: 4rem;
  padding: 3rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  max-width: 900px;
}

.projects-intro-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.projects-intro-text {
  font-size: 1.2rem;
  line-height: 1.6;  /* ← FIXED: Changed from 0.7 to 1.6 */
  color: #6c757d;
  max-width: 800px;
  text-align: left !important;
}

.projects-intro-text ul {
  text-align: left !important;
  margin-left: 2rem !important;
}

.projects-intro-text li {
  text-align: left !important;
  margin-bottom: 0.8rem;  /* ← Better spacing */
}

/* Form Section */
.project-form-section {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  max-width: 1000px;
  margin-bottom: 4rem;
}

.project-form-section h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 700;
}

.form-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

/* Form Styles */
.project-inquiry-form {
  text-align: left !important;
}

.form-group {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.form-group:last-of-type {
  border-bottom: none;
}

.form-group h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  text-align: left !important;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.form-column {
  flex: 1;
  min-width: 250px;
  text-align: left !important;
}

.form-column.full-width {
  flex: 1 1 100%;
}

.form-column label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
  text-align: left !important;
}

.form-column input,
.form-column select,
.form-column textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-column input:focus,
.form-column select:focus,
.form-column textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-column input.error,
.form-column select.error,
.form-column textarea.error {
  border-color: #e74c3c;
}

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

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left !important;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left !important;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Submit Button */
.form-submit {
  text-align: center !important;
  margin-top: 2rem;
}

.submit-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.submit-btn:hover:not(:disabled) {
  background: #219653;
  transform: scale(1.05);
}

.submit-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  margin-top: 1rem;
  color: #6c757d;
  font-size: 0.9rem;
}

/* Success Message */
.success-message {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 10px;
  padding: 2rem;
  color: #155724;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.success-message h3 {
  color: #155724;
  margin-bottom: 1rem;
}

.success-message a {
  color: #155724;
  font-weight: 600;
  text-decoration: underline;
}

/* Next Steps Section */
.next-steps-section {
  max-width: 1200px;
}

.next-steps-section h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 3rem;
  font-weight: 600;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
}

.step-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f3f4;
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #3498db;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.step-card h4 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.step-card p {
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-hero-title {
    font-size: 2.5rem;
  }

  .projects-hero-subtitle {
    font-size: 1.2rem;
  }

  .project-form-section {
    padding: 2rem 1rem;
    margin: 2rem 1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .form-column {
    min-width: 100%;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projects-container {
    padding: 0 1rem;
  }
}

.hidden {
  display: none;
}

/* ===== AGGRESSIVE SPACE REDUCTION ===== */
.projects-page-wrapper .projects-hero {
  padding: 40px 5px 40px 5px !important;
}

.projects-page-wrapper .projects-hero .projects-hero-title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.1 !important;
}

.projects-page-wrapper .projects-hero .projects-hero-subtitle {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

/* Fix text starting in middle of input fields */
.project-inquiry-form input,
.project-inquiry-form textarea,
.project-inquiry-form select {
  text-align: left !important;
  padding-left: 12px !important;
}

/* Ensure proper alignment for all form elements */
.form-column input,
.form-column textarea,
.form-column select {
  text-align: left;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Specific fix for textareas */
.project-inquiry-form textarea {
  text-align: left !important;
  padding: 12px !important;
  resize: vertical;
}

/* Fix for select dropdowns */
.project-inquiry-form select {
  text-align: left !important;
  padding-left: 12px !important;
}

/* ===== MOBILE FIXES (PORTRAIT ONLY) ===== */
@media (max-width: 768px) and (orientation: portrait) {
  /* Fix text size and spacing in hero section */
  .projects-hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
  }

  .projects-hero-subtitle {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
  }

  /* Fix intro section text overlap and line spacing */
  .projects-intro-text {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    text-align: left !important;
    margin: 0 auto !important;
  }

  .projects-intro-text ul {
    margin-left: 1rem !important;
    padding-left: 0 !important;
  }

  .projects-intro-text li {
    margin-bottom: 0.8rem !important;
    text-align: left !important;
  }

  /* Reduce padding in sections to prevent crowding */
  .projects-intro-section {
    padding: 1.5rem 1rem !important;
    margin-bottom: 2rem !important;
  }

  .project-form-section {
    padding: 1.5rem 1rem !important;
    margin: 1rem 0.5rem 2rem 0.5rem !important;
  }

  /* Fix form text sizes */
  .project-form-section h2 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  .form-subtitle {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }

  .form-group h3 {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
  }

  /* Ensure form elements don't overflow */
  .form-column input,
  .form-column select,
  .form-column textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 0.8rem !important;
  }

  /* Fix main content padding */
  .projects-main-content {
    padding: 2rem 0 !important;
  }

  /* Reduce step card padding */
  .step-card {
    padding: 1.5rem 1rem !important;
  }

  .step-card h4 {
    font-size: 1.1rem !important;
  }

  .step-card p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }

  /* Fix container padding for mobile */
  .projects-container {
    padding: 0 1rem !important;
  }

  /* Fix form row layout for mobile */
  .form-row {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .form-column {
    min-width: 100% !important;
  }

  /* Adjust hero padding for mobile */
  .projects-hero {
    padding: 30px 10px !important;
  }

  /* Fix checkbox group spacing */
  .checkbox-group {
    gap: 0.8rem !important;
  }

  /* Adjust submit button for mobile */
  .submit-btn {
    padding: 0.9rem 2rem !important;
    font-size: 1rem !important;
    min-width: 180px !important;
  }
}
