/* ==========================================================
   ADJAH FREEMAN PORTFOLIO
   CLIENT FEEDBACK STYLES
   Complete replacement: feedback.css
========================================================== */


/* ==========================================================
   1. FEEDBACK SECTION
========================================================== */

.feedback-section {
  position: relative;
  padding-top: 100px;
  padding-bottom: 100px;
  overflow: hidden;
}

.feedback-section .section-heading {
  margin-bottom: 35px;
}

.feedback-section .section-heading h2 {
  max-width: 650px;
}


/* ==========================================================
   2. FEEDBACK FORM WRAPPER
========================================================== */

.feedback-form-wrapper {
  width: 100%;
  max-width: 850px;

  padding: 38px;

  background: var(--surface, #191a17);

  border: 1px solid var(--border, #30332a);
  border-radius: 18px;

  transition:
    background .25s ease,
    border-color .25s ease;
}

.feedback-form-wrapper h3 {
  margin-bottom: 12px;

  color: var(--text, #f4f5ef);

  font-size: 23px;
  font-weight: 750;
  letter-spacing: -.7px;
}

.feedback-description {
  max-width: 620px;

  margin-bottom: 30px;

  color: var(--muted, #999);

  font-size: 14px;
  line-height: 1.8;
}


/* ==========================================================
   3. FEEDBACK FORM
========================================================== */

.feedback-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 22px;
}

.feedback-form > label:not(.feedback-consent) {
  display: flex;
  flex-direction: column;
  gap: 9px;

  color: var(--text, #f4f5ef);

  font-size: 12px;
  font-weight: 700;
}


/* ==========================================================
   4. FORM INPUTS
========================================================== */

.feedback-form input:not([type="checkbox"]),
.feedback-form textarea {
  width: 100%;

  padding: 14px 15px;

  background: var(--input-bg, #11120f);
  color: var(--text, #f4f5ef);

  border: 1px solid var(--border, #30332a);
  border-radius: 9px;

  outline: none;

  font-family: inherit;
  font-size: 13px;

  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.feedback-form input:not([type="checkbox"]) {
  min-height: 48px;
}

.feedback-form textarea {
  min-height: 155px;
  resize: vertical;
  line-height: 1.7;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: var(--muted, #999);
  opacity: .7;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: #c8ff5f;

  box-shadow:
    0 0 0 3px rgba(200, 255, 95, .09);
}


/* ==========================================================
   5. FEEDBACK TEXTAREA
========================================================== */

.feedback-form > label:has(textarea) {
  grid-column: 1 / -1;
}

.feedback-form textarea {
  width: 100%;
}


/* ==========================================================
   6. CONSENT CHECKBOX
========================================================== */

.feedback-consent {
  grid-column: 1 / -1;

  display: flex;
  align-items: flex-start;
  gap: 13px;

  padding: 18px;

  background: var(--input-bg, #11120f);

  border: 1px solid var(--border, #30332a);
  border-radius: 10px;

  cursor: pointer;
}

.feedback-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;

  flex-shrink: 0;

  margin-top: 3px;

  accent-color: #c8ff5f;

  cursor: pointer;
}

.feedback-consent span {
  color: var(--muted, #999);

  font-size: 12px;
  line-height: 1.8;
}


/* ==========================================================
   7. HONEYPOT SPAM PROTECTION
========================================================== */

.feedback-honeypot {
  position: absolute !important;

  left: -9999px !important;

  width: 1px !important;
  height: 1px !important;

  overflow: hidden !important;
}


/* ==========================================================
   8. SUBMIT BUTTON
========================================================== */

.feedback-submit {
  grid-column: 1 / -1;

  width: 100%;
  min-height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px 22px;

  background: #c8ff5f;
  color: #10110f;

  border: 1px solid #c8ff5f;
  border-radius: 9px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background .25s ease,
    transform .25s ease,
    opacity .25s ease;
}

.feedback-submit:hover {
  background: #b6ed4d;
  border-color: #b6ed4d;

  transform: translateY(-2px);
}

.feedback-submit:active {
  transform: translateY(0);
}

.feedback-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}


/* ==========================================================
   9. SUCCESS AND ERROR MESSAGES
========================================================== */

.feedback-status {
  padding: 15px 18px;
  margin-bottom: 22px;

  border: 1px solid transparent;
  border-radius: 9px;

  font-size: 13px;
  line-height: 1.7;
}

.feedback-status[hidden] {
  display: none !important;
}

.feedback-status.success {
  background: rgba(130, 210, 100, .10);

  border-color: rgba(130, 210, 100, .25);

  color: #a8e66b;
}

.feedback-status.error {
  background: rgba(255, 100, 100, .10);

  border-color: rgba(255, 100, 100, .25);

  color: #ff8585;
}


/* ==========================================================
   10. TESTIMONIAL DISPLAY
========================================================== */

.testimonials-section {
  padding-top: 90px;
  padding-bottom: 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.testimonial-card {
  padding: 25px;

  background: var(--surface, #191a17);

  border: 1px solid var(--border, #30332a);
  border-radius: 13px;

  overflow-wrap: anywhere;

  transition:
    transform .25s ease,
    border-color .25s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);

  border-color: rgba(200, 255, 95, .4);
}

.testimonial-feedback {
  margin-bottom: 22px;

  color: var(--text, #f4f5ef);

  font-size: 14px;
  line-height: 1.9;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;

  padding-top: 16px;

  border-top: 1px solid var(--border, #30332a);
}

.testimonial-author strong {
  color: var(--text, #f4f5ef);
  font-size: 13px;
}

.testimonial-author span {
  color: var(--muted, #999);
  font-size: 11px;
}


/* ==========================================================
   11. EMPTY STATE
========================================================== */

.empty-note {
  padding: 25px;

  color: var(--muted, #999);

  text-align: center;
  font-size: 13px;

  border: 1px dashed var(--border, #30332a);
  border-radius: 10px;
}


/* ==========================================================
   12. LIGHT MODE
========================================================== */

body.light-mode .feedback-form-wrapper,
body.light-mode .testimonial-card {
  background: #ffffff;
  border-color: #e1e3da;
}

body.light-mode .feedback-form-wrapper h3,
body.light-mode .testimonial-feedback,
body.light-mode .testimonial-author strong {
  color: #171914;
}

body.light-mode .feedback-form input:not([type="checkbox"]),
body.light-mode .feedback-form textarea,
body.light-mode .feedback-consent {
  background: #f8f9f5;
  color: #171914;
  border-color: #e1e3da;
}

body.light-mode .feedback-form input::placeholder,
body.light-mode .feedback-form textarea::placeholder {
  color: #85887e;
}

body.light-mode .feedback-form > label:not(.feedback-consent) {
  color: #171914;
}

body.light-mode .feedback-consent span {
  color: #73776c;
}

body.light-mode .testimonial-author {
  border-color: #e1e3da;
}

body.light-mode .testimonial-author span {
  color: #73776c;
}


/* ==========================================================
   13. TABLET RESPONSIVENESS
========================================================== */

@media (max-width: 800px) {

  .feedback-section {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .feedback-form-wrapper {
    padding: 28px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

}


/* ==========================================================
   14. MOBILE RESPONSIVENESS
========================================================== */

@media (max-width: 550px) {

  .feedback-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .feedback-form-wrapper {
    padding: 20px;

    border-radius: 13px;
  }

  .feedback-form-wrapper h3 {
    font-size: 20px;
  }

  .feedback-description {
    font-size: 13px;
  }

  .feedback-form {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .feedback-form > label:has(textarea),
  .feedback-consent,
  .feedback-submit {
    grid-column: 1;
  }

  .feedback-form input:not([type="checkbox"]) {
    min-height: 46px;
  }

  .feedback-form textarea {
    min-height: 135px;
  }

  .feedback-consent {
    padding: 14px;
  }

  .feedback-submit {
    min-height: 49px;
  }

  .testimonial-card {
    padding: 20px;
  }

}


/* ==========================================================
   15. ACCESSIBILITY
========================================================== */

.feedback-form input:focus-visible,
.feedback-form textarea:focus-visible,
.feedback-form button:focus-visible,
.feedback-consent input:focus-visible {
  outline: 2px solid #c8ff5f;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

  .feedback-form-wrapper,
  .feedback-submit,
  .testimonial-card {
    transition: none;
  }

}