/* ==========================================================================
   SPACE 4 CHANGE (S4C) - PROJECT 1: CONSCIOUS BUDGET DESIGN STYLES
   Visual Mood: Black background, Gold accents, and White text
   ========================================================================== */

#project-1 {
  background-color: #080808 !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
}

#project-1 .project-content {
  background: #080808 !important;
  color: #ffffff !important;
  padding: 80px 0;
  position: relative;
}

#project-1 h2.section-title, 
#project-1 h3.section-title, 
#project-1 h3, 
#project-1 h4 {
  color: #D4AF37 !important;
  font-family: 'Playfair Display', serif;
}

#project-1 .section-label {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

#project-1 .divider {
  background-color: #D4AF37 !important;
  width: 60px;
  height: 3px;
  margin: 15px 0 25px 0;
}

#project-1 .divider-center {
  margin-left: auto;
  margin-right: auto;
}

#project-1 p.section-body {
  color: rgba(255, 255, 255, 0.75) !important;
  line-height: 1.8;
  font-size: 1.02rem;
}

/* ─── Hero Section Overrides ────────────────────────────────────────────── */
#project-1 .project-hero {
  border-bottom: 3px solid #D4AF37;
}

#project-1 .project-hero-sub {
  color: #D4AF37 !important;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
#project-1 .btn-p1-primary {
  background: linear-gradient(135deg, #c5a059, #9e7e3d) !important;
  color: #080808 !important;
  border: 1px solid #ffffff !important;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

#project-1 .btn-p1-primary:hover {
  background: #ffffff !important;
  color: #080808 !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

#project-1 .btn-p1-secondary {
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid #D4AF37 !important;
  padding: 10px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

#project-1 .btn-p1-secondary:hover {
  background: #D4AF37 !important;
  color: #080808 !important;
  transform: translateY(-2px);
}

/* ─── Client Dashboard Preview ───────────────────────────────────────────── */
.p1-dashboard-wrapper {
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  margin-bottom: 60px;
}

.p1-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 20px;
  margin-bottom: 25px;
}

.p1-dashboard-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p1-dashboard-title h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  color: #D4AF37;
}

.p1-dashboard-status-label {
  background: rgba(212, 175, 55, 0.15);
  color: #D4AF37;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Status steps grid (12 workflow steps) */
.p1-workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  grid-gap: 15px;
  margin-bottom: 25px;
}

.p1-workflow-step {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  position: relative;
  transition: all 0.3s;
}

.p1-workflow-step.completed {
  background: rgba(39, 174, 96, 0.1);
  border-color: #27AE60;
  color: #27AE60;
}

.p1-workflow-step.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: #D4AF37;
  color: #D4AF37;
  box-shadow: 0 0 10px rgba(212,175,55,0.25);
}

.p1-workflow-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 6px auto;
  font-size: 0.7rem;
  font-weight: 800;
}

.p1-workflow-step.completed .p1-workflow-step-num {
  background: #27AE60;
}

.p1-workflow-step.active .p1-workflow-step-num {
  background: #D4AF37;
}

/* ─── Client Journey Cards ────────────────────────────────────────────────── */
.p1-journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 25px;
  margin-top: 40px;
}

.p1-journey-card {
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.p1-journey-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}

.p1-journey-card.active-step {
  border: 2px solid #D4AF37;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.p1-journey-card-num {
  position: absolute;
  top: 0; right: 0;
  background: rgba(255, 255, 255, 0.03);
  color: #D4AF37;
  font-weight: 800;
  font-size: 2.5rem;
  padding: 10px 20px;
  border-bottom-left-radius: 16px;
  line-height: 1;
  opacity: 0.35;
}

.p1-journey-card.active-step .p1-journey-card-num {
  background: rgba(212, 175, 55, 0.1);
  color: #D4AF37;
  opacity: 0.8;
}

.p1-journey-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  padding-right: 50px;
}

.p1-journey-card p {
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.p1-journey-card .btn-p1-primary {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.p1-journey-card.locked {
  opacity: 0.4;
  pointer-events: none;
  background: rgba(18, 18, 18, 0.3);
}

.p1-journey-card.locked .btn-p1-primary {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.05) !important;
  color: rgba(255,255,255,0.2) !important;
  box-shadow: none !important;
}

/* ─── 7 Design Brief Section ──────────────────────────────────────────────── */
.p1-brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 20px;
  margin-top: 40px;
}

.p1-brief-card {
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s;
}

.p1-brief-card:hover {
  border-color: #D4AF37;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.p1-brief-card-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: #D4AF37;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: all 0.3s;
}

.p1-brief-card:hover .p1-brief-card-icon {
  background: #D4AF37;
  color: #080808;
  border-color: #D4AF37;
}

.p1-brief-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #D4AF37;
}

.p1-brief-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ─── Benefits Section ────────────────────────────────────────────────────── */
.p1-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 25px;
  margin-top: 40px;
}

.p1-benefit-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: rgba(18, 18, 18, 0.4);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
}

.p1-benefit-check {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.15);
  color: #27AE60;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.p1-benefit-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #D4AF37;
  margin-bottom: 6px;
}

.p1-benefit-info p {
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ─── Interactive Forms Modal ─────────────────────────────────────────────── */
.p1-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px 20px;
}

.p1-modal.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.p1-modal-content {
  background: #0f0f0f;
  border: 1px solid #D4AF37;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.1);
  position: relative;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
}

.p1-modal.open .p1-modal-content {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

.p1-modal-header {
  margin-bottom: 24px;
  padding: 24px 24px 0 24px;
}

.p1-modal-header h3 {
  color: #D4AF37 !important;
  margin: 0 0 6px 0;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif !important;
}

.p1-modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.p1-modal-close-btn:hover {
  background: #D4AF37;
  color: #080808;
  border-color: #D4AF37;
  transform: rotate(90deg);
}

.p1-modal-step-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #D4AF37;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.p1-modal-body {
  padding: 0 24px 24px 24px;
}

/* Custom form styles inside modal */
.p1-form-group {
  margin-bottom: 18px;
}

.p1-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #D4AF37;
  margin-bottom: 6px;
}

.p1-form-input, .p1-form-select, .p1-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #ffffff;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #181818;
}

.p1-form-input:focus, .p1-form-select:focus, .p1-form-textarea:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  background: #1c1c1c;
}

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

/* Double column form layouts */
.p1-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 15px;
}

/* Testimonial strip override for Project 1 */
#project-1 .testimonial-strip {
  background: rgba(212, 175, 55, 0.05) !important;
  border-left: 4px solid #D4AF37 !important;
  padding: 20px !important;
  border-radius: 0 8px 8px 0;
  margin: 30px 0;
}

#project-1 .testimonial-strip p {
  color: #ffffff !important;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
}

#project-1 .testimonial-strip .author {
  color: #D4AF37 !important;
  font-weight: bold;
  font-size: 0.82rem;
  display: block;
  margin-top: 10px;
}

/* File Upload mockup component */
.p1-file-upload-box {
  border: 2px dashed rgba(255,255,255,0.2);
  background: #181818;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  color: rgba(255,255,255,0.5);
}

.p1-file-upload-box:hover {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.03);
}

.p1-file-upload-box span {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 5px;
}

/* ─── Dynamic Footer Details & Surveys Grid ─────────────────────────────── */
.p1-footer-section {
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0 20px 0;
  position: relative;
  z-index: 2;
}

/* 7 Survey Icons Grid at the bottom */
.p1-surveys-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  grid-gap: 15px;
  margin-bottom: 50px;
}

.p1-survey-icon-btn {
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.p1-survey-icon-btn:hover {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.p1-survey-icon-btn-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.p1-survey-icon-btn:hover .p1-survey-icon-btn-num {
  background: #D4AF37;
  color: #080808;
  border-color: #D4AF37;
}

.p1-survey-icon-btn span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Footer elements matching links page */
.p1-footer-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 30px;
  align-items: center;
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.p1-footer-logo-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.p1-footer-logo-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.p1-footer-logo-brand h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #ffffff !important;
  font-weight: 800;
}

.p1-footer-logo-brand p {
  margin: 2px 0 0 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.p1-footer-url-loc {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p1-footer-url-loc a {
  color: #D4AF37;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.p1-footer-url-loc a:hover {
  text-decoration: underline;
}

.p1-footer-url-loc span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.p1-qr-section {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-end;
}

.p1-qr-code {
  width: 65px;
  height: 65px;
  background: #ffffff;
  padding: 4px;
  border-radius: 6px;
}

.p1-qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p1-qr-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.p1-qr-text strong {
  display: block;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.1em;
}

/* ─── Responsive Adjustments ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .p1-footer-details {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 25px;
  }
  
  .p1-footer-logo-brand, .p1-qr-section {
    justify-content: center;
  }
  
  .p1-surveys-icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .p1-form-row {
    grid-template-columns: 1fr;
  }
  
  .p1-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .p1-workflow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .p1-surveys-icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
