/* Feedback Page CSS */
@import url('style.css'); /* Optional, if you want to inherit main styles */

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: "Roboto Condensed", sans-serif;
    margin: 0;
    padding-top: 12vh;
}

/* ====== Hero Section ====== */
.hero {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-finger);
    margin-bottom: 0.5rem;
}

.hero h1 .highlight {
    color: var(--lead);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ====== Feedback Cards Section ====== */
.feedback-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ====== Individual Card Styling ====== */
.feedback-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--gold-finger);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55), box-shadow 0.3s, background 0.3s, border-color 0.3s;
    cursor: pointer;
    position: relative;
    outline: none;
    will-change: transform, box-shadow;
    box-shadow: 0 2px 8px var(--shadow);
}

.feedback-card h2 {
    color: var(--gold-finger);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feedback-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.card-tagline {
    margin-top: 0.7rem;
    font-size: 1.04rem;
    color: var(--lead, #FFC107);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    opacity: 0.92;
}

/* ====== Hover Effects ====== */
.feedback-card:hover, .feedback-card:focus {
    transform: translateY(-12px) scale(1.035) rotate(-1deg);
    box-shadow: 0 12px 32px var(--shadow);
    background-color: var(--bg-hover, rgba(255,255,255,0.06));

}

.feedback-card:focus {
    box-shadow: 0 0 0 3px var(--lead), 0 8px 16px var(--shadow);
    z-index: 2;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55);
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.feedback-card:hover .card-icon,
.feedback-card:focus .card-icon {
    transform: scale(1.22) rotate(-10deg);
    filter: drop-shadow(0 2px 6px var(--lead));
}

/* ====== Modal Header and Body ====== */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.hero {
  text-align: center;
  padding: 100px 20px 80px;
  background: linear-gradient(135deg, #fff4ef, #ffe8dc);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 14px;
  color: #222;
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  color: #666;
  font-size: 1.05rem;
}
.highlight {
  color: #ff6b35;
}

.feedback-stats {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-box {
  background: #fff;
  padding: 20px 28px;
  border-radius: 18px;
  min-width: 160px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-box h3 {
  color: #ff6b35;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.stat-box p {
  color: #666;
  font-size: 0.95rem;
}

.feedback-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 60px 8%;
}

.feedback-card {
    background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feedback-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #ff6b35, #ff8c42);
}

.feedback-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.feedback-card h2 {
  color: #222;
  margin-bottom: 12px;
}

.feedback-card p {
  color: #666;
  line-height: 1.7;
}

.feedback-modal {
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}


.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--lead);
    background: var(--bg-primary);
}

.modal-body {
    flex: 1;
}

/* ====== Form Elements ====== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

#feedback-form input[type="text"],
#feedback-form input[type="email"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.7rem;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#feedback-form input:focus,
#feedback-form textarea:focus {
    border-color: var(--lead);
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 189, 18, 0.1);
}

/* ====== Rating Stars ====== */
.rating {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.2rem;
    border-radius: 0.3rem;
}

.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
    color: #ffb400;
    transform: scale(1.1);
}

.rating label:hover {
    background: rgba(255, 180, 0, 0.1);
}

/* ====== Loading and Error States ====== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--gold-finger);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-header {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #fff;
  padding: 20px 24px;
  border-radius: 24px 24px 0 0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  margin-top: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff6b35;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
  outline: none;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #222;
  color: #fff;
  padding: 16px 22px;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.3rem;
  }

  .feedback-container {
    padding: 40px 20px;
  }

  .stat-box {
    width: 100%;
    max-width: 220px;
  }
}

.field-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

.retry-btn {
    background: var(--lead);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.retry-btn:hover {
    background: var(--gold-finger);
    transform: translateY(-1px);
}

/* ====== Toast Notifications ====== */
.toast {
    position: fixed;
    top: 2rem;
    right: -400px;
    background: var(--gold-finger);
    color: var(--text-primary);
    border-radius: 0.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(.68,-0.55,.27,1.55);
    max-width: 90vw;
}

.toast.show {
    right: 2rem;
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.toast-message {
    font-weight: 500;
    font-size: 1rem;
}

.submit-btn {
    background: var(--gold-finger);
    color: #fff;
    border: none;
    border-radius: 0.7rem;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px var(--shadow);
}

.submit-btn:hover,
.submit-btn:focus {
    background: var(--lead);
    transform: translateY(-2px) scale(1.04);
}

.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* ====== Footer ====== */
footer {
    margin: 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    text-align: center;
    padding: 1.2rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.98rem;
    color: var(--text-secondary);
    opacity: 0.85;
    text-align: left;
}

/* ====== Success Toast Animation ====== */
.success-toast {
    position: fixed;
    top: 2.5rem;
    right: -350px;
    background: var(--gold-finger, #FFD700);
    color: var(--text-primary, #222);
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(255, 215, 0, 0.18);
    padding: 1.1rem 2.2rem 1.1rem 1.6rem;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: right 0.6s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.4s;
    overflow: visible;
    max-width: 90vw;
}
.success-toast.show {
    right: 2.5rem;
    opacity: 1;
    pointer-events: auto;
}
.toast-icon {
    font-size: 1.5rem;
    margin-right: 0.3rem;
}
.toast-msg {
    font-size: 1.08rem;
}

@media (max-width: 700px) {
    .feedback-modal {
        width: 95vw;
        min-width: unset;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .feedback-container {
        gap: 1rem;
        padding: 2rem 0.5rem;
    }
    .feedback-card {
        padding: 1.2rem 0.7rem;
    }
}

.open-feedback-btn {
  margin-top: 18px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.open-feedback-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.25);
}

.feedback-card {
  cursor: pointer;
}
.feedback-card:focus-visible {
  outline: 3px solid #ff8c42;
  outline-offset: 4px;
}

.featured-card {
  border: 1px solid rgba(255, 107, 53, 0.12);
  background: linear-gradient(180deg, #ffffff, #fffaf7);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.card-tag {
  background: rgba(255, 107, 53, 0.12);
  color: #ff6b35;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}

.feedback-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.feedback-features li {
  color: #555;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.mini-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff4ef;
  color: #ff6b35;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.featured-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
}