:root {
  --primary: #14e4f4;
  --primary-dark: #0fa4b4;
  --primary-soft: rgba(20, 228, 244, 0.12);
  --accent: #023047;
  --success: #2a9d8f;
  --danger: #d62828;

  --bg: #f4f8fb;
  --card: #ffffff;
  --line: #d9e7ef;

  --text: #123044;
  --muted: #5f7d8c;

  --shadow: 0 12px 32px rgba(2, 48, 71, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #eef7fb 0%, #f7fbfd 100%);
  color: var(--text);
  min-height: 100vh;
  font-size: 18px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 50px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}

.main-card {
  position: relative;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-header {
  flex: 1;
}

.language-switch {
  min-width: 200px;
}

.language-switch label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 700;
}

h1,
h2 {
  margin-top: 0;
  color: var(--accent);
  line-height: 1.2;
}

h1 {
  font-size: 58px;
  margin-bottom: 16px;
  font-weight: 800;
}

.logo-m {
  color: #14e4f4;
}

h2 {
  font-size: 38px;
  margin-bottom: 28px;
  font-weight: 800;
}

p {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0;
  font-size: 18px;
}

.small-text {
  margin-top: 8px;
  font-size: 18px;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--accent);
  font-size: 19px;
}

input,
select,
textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  margin-bottom: 18px;
  font-size: 18px;
  outline: none;
  transition: all 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: #8fa7b3;
  font-size: 17px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 228, 244, 0.12);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.mode-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
}

.info-box {
  background: rgba(20, 228, 244, 0.08);
  border: 1px solid rgba(20, 228, 244, 0.16);
  border-left: 5px solid var(--primary-dark);
  color: var(--text);
  padding: 16px 18px;
  border-radius: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 18px;
}

.submit-note {
  margin-top: 12px;
}

.rating-smilies {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.smiley-btn {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 34px;
  cursor: pointer;
  background: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(2, 48, 71, 0.05);
}

.smiley-btn:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(20, 228, 244, 0.25);
}

.smiley-btn.active {
  background: linear-gradient(135deg, var(--primary-soft), rgba(20, 228, 244, 0.28));
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(20, 228, 244, 0.22);
}

.button-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.submit-space {
  margin-top: 16px;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 16px 22px;
  font-weight: 700;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.25s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(20, 228, 244, 0.35);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #14e4f4, #0fa4b4);
  color: #071015;
  box-shadow: 0 8px 20px rgba(20, 228, 244, 0.25);
}

.btn-secondary {
  background: #eef6f8;
  color: #0f2430;
  border: 1px solid #d9e7ef;
  transition: all 0.2s ease;
}

.btn-secondary:hover:not(:disabled) {
  background: #e3f4f7;
  border-color: #14e4f4;
}

.btn-danger {
  background: rgba(214, 40, 40, 0.08);
  color: #d62828;
  border: 1px solid rgba(214, 40, 40, 0.2);
  transition: all 0.2s ease;
}

.btn-danger:hover:not(:disabled) {
  background: rgba(214, 40, 40, 0.15);
}

.submit-btn-large {
  min-width: 260px;
  font-size: 20px;
}

#recordingStatus {
  margin-top: 18px;
  font-weight: 700;
  color: var(--accent);
  font-size: 18px;
}

#ratingText {
  margin-bottom: 20px;
}

audio {
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 45, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.success-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 30px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(2, 48, 71, 0.18);
  border: 1px solid #dcebf2;
}

.success-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.success-box h2 {
  margin-bottom: 14px;
  color: #0b5d4d;
  font-size: 34px;
}

.success-box p {
  font-size: 22px;
  color: var(--text);
  margin: 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 700px) {
  body {
    font-size: 17px;
  }

  .container {
    padding: 18px 14px 30px;
  }

  .card {
    padding: 20px;
    border-radius: 18px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .mode-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-bar {
    flex-direction: column;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .smiley-btn {
    width: 62px;
    height: 62px;
    font-size: 30px;
  }

  .btn,
  .submit-btn-large {
    width: 100%;
    font-size: 18px;
  }

  .button-group {
    flex-direction: column;
  }

  .success-box {
    padding: 28px 20px;
  }

  .success-box h2 {
    font-size: 28px;
  }

  .success-box p {
    font-size: 19px;
  }
}