/* Report a Problem Page Styles */

.report-problem-page {
  min-height: calc(100vh - var(--header-height, 80px));
  background-color: var(--bg, #fafaf8);
  padding: 100px 0px 200px 0px;
  display: flex;
  justify-content: center;
}

.report-problem-container {
  max-width: 800px;
  width: 100%;
}

.report-problem-title {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 440;
  line-height: 1.1;
  letter-spacing: 1.92px;
  text-transform: uppercase;
  color: var(--mb);
  margin-bottom: 24px;
}

.report-problem-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
  margin-bottom: 26px;
}

.report-problem-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.report-problem-alert {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 16px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
}

.report-problem-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-problem-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mb);
}

.required-asterisk {
  color: #dc2626;
  font-weight: 500;
}

.report-problem-field-hint {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #000000;
  margin-top: 0;
}

.report-problem-error {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #dc2626;
  margin-top: 4px;
}

/* Custom Select wrapper styles for report form */
.report-problem-form .custom-select-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

/* Simple underline select trigger */
.report-problem-form .report-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 70%;
  padding: 12px 0;
  cursor: pointer;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--mb-70);
}

.report-problem-form .report-select-trigger:hover,
.report-problem-form .report-select-trigger:focus {
  outline: none;
  border-bottom-color: var(--mb-70, #9d9d97);
}

.report-problem-form .report-select-value {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--mb-70);
}

.report-problem-form .report-select-chevron {
  display: flex;
  align-items: center;
  color: var(--mb-70);
  transition: transform 0.2s ease;
}

.report-problem-form .report-select-chevron svg {
  width: 16px;
  height: 16px;
}

.report-problem-form .report-select-trigger[aria-expanded="true"] .report-select-chevron {
  transform: rotate(90deg);
}

.report-problem-form .custom-select-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  max-height: 0;
  overflow: hidden;
  background-color: var(--dc-greys-100);
  border: 1px solid var(--mb-70);
  border-top: none;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  width: 70%;
}

.report-problem-form .custom-select-menu.open {
  max-height: 320px;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
}

.report-problem-form .custom-select-option {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--mb, #3b3933);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.report-problem-form .custom-select-option:hover,
.report-problem-form .custom-select-option:focus {
  background-color: var(--grey-100, #f5f5f3);
  outline: none;
}

.report-problem-form .custom-select-option.selected {
  font-weight: 500;
  background-color: var(--grey-100, #f5f5f3);
}

/* Textarea styles - using input-text class from design system */
.report-problem-form .input-text {
  min-height: 120px;
}

.report-problem-form .input-text::placeholder {
  color: var(--mb-70);
}

/* File upload - using upload-label-box from design system */
.report-problem-form .file-upload-dashed-container {
  margin-top: 8px;
}

.report-problem-form .upload-label-box {
  width: 125px;
  height: 125px;
}

.report-problem-form .plus-icon {
  font-size: 48px;
}

/* Hide the file input visually */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* File list preview - displays inline with upload button */
.report-problem-file-list {
  display: contents;
}

/* Image preview items - same size as upload button */
.report-problem-form .upload-preview-item {
  width: 125px;
  height: 125px;
}

/* Non-image file items */
.report-problem-file-item {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--mb, #3b3933);
  background-color: #ffffff;
  border: 1px solid var(--grey-200, #ebebea);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  height: fit-content;
}

/* Remove button for non-image file items */
.file-remove-btn {
  background: none;
  border: none;
  color: var(--mb-70);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.file-remove-btn:hover {
  color: var(--status-red);
}



.report-problem-confidentiality p {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--mb-50, #9d9d97);
  max-width: 480px;
}

/* Submit Button */
input[type="submit"].report-problem-submit {
  all: unset;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 540;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 22px;
  background-color: var(--mb, #3b3933);
  color: #ffffff;
  border: 1px solid var(--mb, #3b3933);
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-end;
  border-radius: 3px;
}

input[type="submit"].report-problem-submit:hover {
  background-color: var(--mb);
  border-color: var(--mb);
}

input[type="submit"].report-problem-submit:disabled {
  background-color: var(--mb-70, #9d9d97);
  border-color: var(--mb-70, #9d9d97);
  cursor: not-allowed;
}

/* Success Page Styles */
.report-success-page {
  min-height: calc(100vh - var(--header-height, 80px));
  background-color: var(--bg, #fafaf8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.report-success-container {
  text-align: center;
  max-width: 520px;
}

.report-success-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mb, #3b3933);
  margin-bottom: 71px;
  margin-top: 0px
}

.report-success-message {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
  margin-bottom: 12px;
  text-align: center;
}

.report-success-link {
  display: inline-block;
  margin-top: 48px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mb-70);
  text-decoration: none;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.report-success-link:hover {
  color: var(--mb);
}

/* Responsive adjustments */
@media only screen and (max-width: 640px) {

  .report-problem-page,
  .report-success-page {
    padding: 60px 20px;
  }

  .report-problem-title,
  .report-success-title {
    font-size: 2.25rem;
  }

  input[type="submit"].report-problem-submit {
    width: 100%;
    align-self: center;
  }
}