/* --- Textarea & Recorder Styles --- */
.ww-textarea {
  width: 100%;
  padding: 10px;
  font-size: 55px !important;
  font-family: "Banana", sans-serif !important;
  box-sizing: border-box;
  border: 1px solid #333;
  border-radius: 6px;
  resize: vertical;
  color: #000;
  display: block;
  margin: 0 auto;
  text-align: left;
  min-height: 150px !important;
  max-height: 200px !important;
}
.ww-textarea::placeholder {
  color: #888;
  font-size: 45px;
  padding-left: 5px;
}
@media (max-width: 768px) {
  .ww-textarea::placeholder {
    font-size: 20px;
  }
}

/* Validation */
.ww-not-valid-tip {
  display: block !important;
  text-align: center;
  margin-top: 8px;
  color: #e53935;
  font-size: 14px;
}

/* Headings */
.ww-form-heading {
  font-size: 42px;
  color: #7131a0;
  font-family: "Banana", sans-serif;
  text-align: center;
  margin-bottom: 18px;
}
.ww-form-section-heading {
  color: #7131a0;
  text-align: center;
  font-family: "Banana", sans-serif !important;
  font-size: 74px !important;
  line-height: 55px !important;
  font-weight: normal;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Leave Question Heading */
.ww-leave-question-heading {
  padding: 6px 8px;
  font-family: "Banana", sans-serif !important;
  font-size: 74px !important;
  font-weight: 500 !important;
  color: #000;
  line-height: 1.4;
  margin-bottom: 10px;
  text-align: center;
}

.ww-acceptance-checkbox {
  font-family: "Banana", sans-serif !important;
  font-size: 55px !important;
  margin-bottom: 6px;
  color: #000;
}
.ww-acceptance-checkbox label {
  display: flex;
  font-weight: 400 !important;
  align-items: center;
  gap: 10px;
}

/* Layout */
.ww-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}
.ww-form-col {
  flex: 1 1 44%;
  display: flex;
  flex-direction: column;
}
.ww-form-col label {
  font-family: "Banana", sans-serif !important;
  font-size: 55px !important;
  font-weight: 500 !important;
  margin-bottom: 6px;
  color: #000;
}
@media (max-width: 768px) {
  .ww-form-col {
    flex: 1 1 100%;
  }
}

/* Upload buttons */
.ww-options-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.ww-option-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  background: #7131a0;
  color: #fff;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}
.ww-option-btn:hover,
.ww-recorder-btn-wrap button:hover,
.ww-submit-wrapper button:hover {
  background: #5d2785;
}
.ww-option-btn:focus-visible,
.ww-recorder-btn-wrap button:focus-visible,
.ww-submit-wrapper button:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}
.ww-option-btn:disabled,
.ww-recorder-btn-wrap button:disabled,
.ww-submit-wrapper button:disabled {
  background: #bfbfbf;
  color: #444;
}

.ww-remove-record-btn {
  background: #d63638 !important;
  color: #fff !important;
}
.ww-remove-record-btn:hover {
  background: #c52228 !important;
}

/* Inputs */
.ww-form-col input[type="text"],
.ww-form-col input[type="email"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  margin-top: 5px;
}

/* Checkbox specific sizing */
.ww-acceptance-checkbox input[type="checkbox"] { 
    width: 20px; 
    height: 20px; 
}

/* Hide file input initially if needed, or style it */
.ww-upload-input {
  /* display:none!important; If using the button trigger logic, but for now we might show it or use JS to toggle */
  margin-top: 10px;
}

/* OR */
.ww-or-inline {
  text-align: center;
  margin: 10px 0;
  font-weight: 700;
}

/* Recorder */
.ww-recorder-container {
  text-align: center;
}
.ww-recorder-steps {
  list-style: none;
  padding: 0;
  max-width: 420px;
  margin: 12px auto;
  text-align: left;
}
.ww-recorder-steps li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.ww-recorder-steps li.active {
  color: #7131a0;
  font-weight: 700;
}

/* Hide audio UI until a file exists */
.ww-uploaded-block,
.ww-recorded-block {
  /* Keeping recorded-block for JS compatibility */
  display: none;
  margin-top: 16px;
  text-align: center;
}
.ww-recorded-file-name {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}
.ww-audio-playback {
  display: block;
  margin: 8px auto;
  width: 100%;
  max-width: 420px;
}

.ww-recorder-buttons-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.ww-recording-status {
  text-align: center;
  margin-top: 6px;
  font-weight: 600;
}
.ww-recorder-btn-wrap button {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: #7131a0;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}
.ww-recorder-btn-wrap button:disabled {
  background: #bfbfbf;
  color: #444;
  cursor: not-allowed;
}

/* Visualizer */
.ww-visualizer {
  /* Class used by JS */
  width: 260px;
  height: 60px;
  background: #f8f8f8;
  border-radius: 6px;
  margin: 10px auto;
  display: none; /* JS toggles this */
}

.ww-upload-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.ww-upload-modal {
  background: #fff;
  padding: 20px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 320px;
  width: 90%;
  text-align: center;
  font-size: 15px;
}
.ww-upload-modal-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #ddd;
  border-top-color: #7131a0;
  margin: 0 auto 12px;
  animation: ww-spin 0.75s linear infinite;
}
.ww-upload-modal-title {
  font-weight: 600;
  margin-bottom: 4px;
}
.ww-upload-modal-message {
  margin: 0;
}
@keyframes ww-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Submit */
.ww-submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.ww-submit-wrapper button {
  background: #7131a0;
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Consent Box */
#ww-consent-box {
  height: 180px;
  width: 100%;
margin: 12px auto;
  overflow-y: auto;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 16px;
  font-family: "Abel", sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #000;
  background: #fff;
}

#ww-consent-box p,
#ww-consent-box li {
  font-size: 20px;
  line-height: 2;
}

/* Disclaimer */
.ww-disclaimer {
    max-width: 100%;
    margin: 20px auto 10px;
    padding: 14px 18px;
    border: 1px solid #7131A0;
    border-radius: 10px;
    background: #fafafa;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    text-align: center;
}

/* Fonts */
@font-face {
  font-family: "Banana";
  src:
    url("fonts/Banana.woff2") format("woff2"),
    url("fonts/Banana.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* Ensure standard fonts fallback */
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
}
