*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

img,
video {
  max-width: 100%;
  height: auto;
}

:root {
  --surface: #fbf9f9;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f5f5f5;
  --surface-container: #eaeaea;
  --on-surface: #333333;
  --on-surface-variant: #666666;
  --outline-variant: #cccccc;
  --primary: #306b25;
  --primary-transparent: rgba(48, 107, 37, 0.1);
  --primary-container: #d6f2cc;
  --tertiary-container: #d0f0f2;
  --on-primary: #ffffff;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  --background: #fdfdfd;

  --rounded-default: 6px;
  --rounded-lg: 16px;
  --rounded-pill: 9999px;

  --font-family: 'Inter', sans-serif;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(-45deg, #f5fcf2, #e7f7e3, #d9f2e3, #effcf5);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--on-surface);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.7;
  animation: float 14s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  mix-blend-mode: multiply;
  will-change: transform;
}

.blob-1 {
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  background: var(--primary-container);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  background: var(--tertiary-container);
  bottom: 20%;
  right: -20%;
  animation-delay: -5s;
  animation-duration: 20s;
}

.blob-3 {
  width: 40vw;
  height: 40vw;
  max-width: 400px;
  max-height: 400px;
  background: #d8f5d1;
  top: 50%;
  left: 30%;
  animation-delay: -2s;
  animation-duration: 16s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  100% {
    transform: translate(60px, -80px) scale(1.15) rotate(15deg);
  }
}

.page-header {
  text-align: center;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-logo {
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
}

h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: var(--on-surface);
}

.page-header p {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin: 0;
}

.feedback-container {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--rounded-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 40px rgba(48, 107, 37, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  width: 100%;
  max-width: 650px;
  overflow: hidden;
  box-sizing: border-box;
  animation: glassEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes glassEntrance {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-label .icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  color: var(--primary);
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font-family);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--rounded-default);
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--on-surface);
  box-sizing: border-box;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(48, 107, 37, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #999999;
}

.form-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #999999;
  font-style: italic;
}

.form-select {
  width: 100%;
  font-family: var(--font-family);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--rounded-default);
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--on-surface);
  box-sizing: border-box;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(48, 107, 37, 0.15);
}

.star-rating {
  display: flex;
  gap: 8px;
}

.star {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  color: #d1d1d1;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
  overflow: visible;
}

.star svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  overflow: visible;
}

.star:active {
  transform: scale(0.9);
}

.form-file-input {
  display: none;
}

.media-upload-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border: 1.5px dashed rgba(48, 107, 37, 0.3);
  border-radius: var(--rounded-default);
  cursor: pointer;
  color: var(--primary);
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.4);
}

.media-upload-label:hover {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(48, 107, 37, 0.05);
}

.upload-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  letter-spacing: 0.5px;
}

.media-upload-label .icon {
  width: 20px;
  height: 20px;
}

.file-name-display {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  margin-top: 8px;
  display: none;
}

.form-footer {
  background-color: rgba(255, 255, 255, 0.35);
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.privacy-text {
  font-size: 13px;
  font-style: italic;
  color: var(--on-surface-variant);
  margin: 0;
  max-width: 60%;
  line-height: 1.4;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-pill);
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(48, 107, 37, 0.2);
}

.btn-submit:hover {
  background-color: #26551d;
  box-shadow: 0 6px 16px rgba(48, 107, 37, 0.3);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

.alert {
  padding: 14px 20px;
  margin-bottom: 20px;
  border-radius: var(--rounded-default);
  font-size: 14px;
  display: none;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-error {
  background-color: var(--error-container);
  color: var(--on-error-container);
  border: 1px solid var(--error);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(255, 255, 255, 0.85);
  padding: 40px;
  border-radius: var(--rounded-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: translateY(30px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-icon-container {
  width: 70px;
  height: 70px;
  background: var(--primary-container);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px auto;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(48, 107, 37, 0.15);
}

.modal-check {
  width: 36px;
  height: 36px;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.modal-overlay.active .modal-check {
  animation: drawCheck 0.7s cubic-bezier(0.65, 0, 0.45, 1) forwards 0.4s;
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.modal-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0 0 12px 0;
}

.modal-text {
  font-size: 15px;
  color: var(--on-surface-variant);
  margin: 0 0 35px 0;
  line-height: 1.5;
}

.modal-btn {
  width: 100%;
  font-size: 15px;
  padding: 14px;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Admin Specific Styles */
.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-table th {
  font-weight: 700;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

.btn-view {
  padding: 6px 14px;
  background: var(--primary-transparent);
  color: var(--primary);
  border: 1px solid rgba(48, 107, 37, 0.2);
  border-radius: var(--rounded-default);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-family);
  transition: all 0.2s ease;
}

.btn-view:hover {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 12px rgba(48, 107, 37, 0.15);
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  color: var(--on-surface-variant);
}

.pagination a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--rounded-default);
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

/* Base Responsive Fix */
@media (max-width: 768px) {
  body {
    padding: 30px 15px;
  }

  .feedback-container {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  body {
    padding: 20px 10px;
  }

  .blob {
    filter: blur(50px);
  }

  .page-header {
    margin-bottom: 20px;
  }

  .brand-logo {
    max-width: 220px;
  }

  .form-body {
    padding: 20px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-footer {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    align-items: stretch;
  }

  .privacy-text {
    max-width: 100%;
    text-align: center;
  }

  .btn-submit {
    width: 100%;
  }
}