/* ============================================================
   AUTH MODALS — Login / Register / Profile
   ============================================================ */

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.ea-testimonials-section,
.ea-faq-section {
  background: #0d0002;
  border-top: 2px solid #3b0008;
  border-bottom: 2px solid #3b0008;
  padding: 56px 20px;
  font-family: 'Open Sans', sans-serif;
}

.ea-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ea-section-title {
  color: #e53935;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
}

.ea-section-sub {
  color: #aaa;
  text-align: center;
  font-size: 14px;
  margin: 0 0 40px;
}

/* Testimonials grid */
.ea-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.ea-testimonial-card {
  background: #1a0005;
  border: 1px solid #3b0008;
  border-radius: 8px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.ea-testimonial-card:hover {
  border-color: #c62828;
  box-shadow: 0 4px 20px rgba(229,57,53,.15);
}

.ea-testimonial-stars {
  color: #e53935;
  font-size: 18px;
  letter-spacing: 2px;
}

.ea-testimonial-text {
  color: #ccc;
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
  margin: 0;
  font-style: italic;
}

.ea-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.ea-testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3b0008;
  border: 2px solid #c62828;
  color: #e53935;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ea-testimonial-author strong {
  display: block;
  color: #eee;
  font-size: 14px;
}
.ea-testimonial-author span {
  color: #888;
  font-size: 12px;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.ea-faq-section {
  border-top: none;
  padding-top: 48px;
}

.ea-faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ea-faq-item {
  background: #1a0005;
  border: 1px solid #3b0008;
  border-radius: 6px;
  overflow: hidden;
}

.ea-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  color: #eee;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color .2s, background .2s;
}
.ea-faq-question:hover,
.ea-faq-question[aria-expanded="true"] {
  color: #e53935;
  background: #2a0008;
}

.ea-faq-icon {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: #e53935;
  flex-shrink: 0;
  transition: transform .25s;
}
.ea-faq-question[aria-expanded="true"] .ea-faq-icon {
  transform: rotate(45deg);
}

.ea-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.ea-faq-answer p {
  margin: 0;
  padding: 0 20px 18px;
  color: #bbb;
  font-size: 14px;
  line-height: 1.75;
}
.ea-faq-answer strong { color: #e53935; }

@media (max-width: 600px) {
  .ea-section-title { font-size: 22px; }
  .ea-testimonials-grid { grid-template-columns: 1fr; }
  .ea-faq-question { font-size: 14px; padding: 14px 16px; }
}

/* Overlay */
.ea-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9998;
}

/* Modal base */
.ea-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  flex-direction: column;
  background: #1a0005;
  border: 2px solid #c62828;
  border-radius: 8px;
  padding: 32px 36px 28px;
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.7);
  color: #eee;
  font-family: 'Open Sans', sans-serif;
}

.ea-modal-wide {
  max-width: 620px;
}

/* Close button */
.ea-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.ea-close:hover { color: #e53935; }

/* Headings */
.ea-modal h2 {
  margin: 0 0 6px;
  color: #e53935;
  font-size: 22px;
  font-weight: 700;
}

/* Switch link row */
.ea-switch-msg {
  margin: 0 0 20px;
  font-size: 13px;
  color: #bbb;
}
.ea-switch-msg a { color: #e53935; }
.ea-switch-msg a:hover { color: #ff8a80; }

/* Field */
.ea-field {
  margin-bottom: 16px;
  flex: 1;
  min-width: 0;
}
.ea-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #ccc;
  margin-bottom: 5px;
}
.ea-field input,
.ea-field textarea,
.ea-field select {
  width: 100%;
  background: #2a0008;
  border: 1px solid #5a0010;
  border-radius: 4px;
  color: #eee;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color .2s;
}
.ea-field input:focus,
.ea-field textarea:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229,57,53,.25);
}
.ea-field input[type="file"] {
  background: none;
  border: none;
  padding: 4px 0;
  color: #ccc;
  font-size: 13px;
}
.ea-field textarea {
  resize: vertical;
  min-height: 72px;
}

/* Two-column row */
.ea-field-row {
  display: flex;
  gap: 14px;
}

/* Error text */
.ea-error {
  color: #ff5252;
  font-size: 13px;
  margin: -8px 0 12px;
  min-height: 18px;
}

/* Buttons */
.ea-btn-primary {
  display: block;
  width: 100%;
  padding: 11px;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: 4px;
}
.ea-btn-primary:hover { background: #c62828; }

.ea-btn-secondary {
  display: inline-block;
  padding: 9px 18px;
  background: transparent;
  color: #e53935;
  border: 2px solid #e53935;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  margin-right: 8px;
}
.ea-btn-secondary:hover { background: #e53935; color: #fff; }

.ea-btn-danger {
  display: inline-block;
  padding: 9px 18px;
  background: transparent;
  color: #ff5252;
  border: 2px solid #ff5252;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.ea-btn-danger:hover { background: #ff5252; color: #fff; }

.ea-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.ea-form-actions .ea-btn-primary {
  width: auto;
  flex: 1;
}

/* Avatar area */
.ea-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.ea-avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e53935;
}
.ea-avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #3b0008;
  border: 3px solid #c62828;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #e53935;
}

/* Profile table */
.ea-profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}
.ea-profile-table th,
.ea-profile-table td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid #3b0008;
}
.ea-profile-table th {
  color: #c62828;
  font-weight: 600;
  width: 38%;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ea-profile-table td { color: #eee; }

/* Photo preview */
.ea-photo-preview {
  margin-top: 8px;
}
.ea-photo-preview img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 4px;
  border: 2px solid #c62828;
  object-fit: cover;
}

/* Toast */
.ea-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #c62828;
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 10000;
  white-space: nowrap;
}
.ea-toast.ea-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 520px) {
  .ea-modal { padding: 24px 18px 20px; }
  .ea-field-row { flex-direction: column; gap: 0; }
  .ea-form-actions { flex-direction: column; }
}
