/* ─── Feedback Page Container ───────────────────────────────────────── */
.feedback-wrapper {
  max-width: 900px;
  margin: 50px auto;
  background: rgba(0, 43, 91, 0.6);
  border: 1px solid rgba(0, 217, 255, 0.1);
  padding: 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 217, 255, 0.15);
  color: #dff6ff;
  font-family: "Segoe UI", sans-serif;
  backdrop-filter: blur(12px);
}

/* ─── Heading ───────────────────────────────────────── */
.feedback-wrapper h2 {
  text-align: center;
  color: #00d4ff;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* ─── Tab Buttons Container ───────────────────────────────────────── */
.feedback-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

/* ─── Individual Tab Buttons ───────────────────────────────────────── */
.tab-button {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  color: #00d4ff;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
  border-radius: 8px 8px 0 0;
  margin: 0 4px;
}

.tab-button:hover {
  background: rgba(0, 212, 255, 0.15);
  color: #a0f0ff;
}

.tab-button.active {
  border-bottom-color: #00d4ff;
  background: rgba(0, 212, 255, 0.3);
  color: #dff6ff;
  font-weight: 700;
}

/* ─── Tab Content Area ───────────────────────────────────────── */
/* ─── Tab Content Area ───────────────────────────────────────── */
.tab-content {
    display: none;
    padding: 1.5rem 0 0 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .tab-content.active,
  .tab-content:first-child {
    display: block;
  }
  
  .tab-content form {
    max-width: 100%;
  }
  

/* ─── Forms ───────────────────────────────────────── */
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ─── Labels ───────────────────────────────────────── */
label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #a0d8ff;
}

/* ─── Inputs & Textareas & Selects ───────────────────────────────────────── */
textarea,
input[type="text"],
input[type="email"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid #00b4d8;
  font-size: 1rem;
  font-family: inherit;
  background-color: #001d3d;
  color: #dff6ff;
  box-shadow: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
  border-color: #00d4ff;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
  background-color: #002a5a;
}

/* ─── Submit Button ───────────────────────────────────────── */
button[type="submit"] {
  align-self: center;
  padding: 12px 28px;
  background: linear-gradient(to right, #3ecf8e, #26b07c);
  color: #001d16;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(62, 207, 142, 0.5);
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

button[type="submit"]:hover {
  background: linear-gradient(to right, #26b07c, #3ecf8e);
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(62, 207, 142, 0.8);
}

/* ─── Error messages ───────────────────────────────────────── */
.error-message {
  color: #ff6b6b;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ─── Star Ratings ───────────────────────────────────────── */
.star-rating {
  direction: rtl;
  display: inline-flex;
  font-size: 1.6rem;
  gap: 4px;
  margin-top: 0.4rem;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  color: #4f9aff;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #FFD700;
}
/* ─── File Attachment with Icon ───────────────────────────────────────── */
.file-upload {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
  }
  
  .file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #00d4ff;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
  }
  
  .file-label:hover {
    color: #a0f0ff;
  }
  
  .file-input {
    display: none;
  }
  
  .fade-in {
    animation: fadein 0.4s ease-in-out;
  }
  
  @keyframes fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  
/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
  .feedback-wrapper {
    margin: 20px 1rem;
    padding: 1.5rem 1.8rem;
  }

  .feedback-tabs {
    flex-direction: column;
  }

  .tab-button {
    margin: 4px 0;
    border-radius: 8px;
  }

  button[type="submit"] {
    width: 100%;
    text-align: center;
  }
}
