/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: background 0.2s;
}
.modal-box {
  background: #F8F8F8;
  border-radius: 24px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.12);
  padding: 32px 32px 24px 32px;
  min-width: 340px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: popin 0.2s;
}
@keyframes popin {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 18px;
  align-self: flex-start;
}
.modal-score-box {
  background: #E5E5E5;
  border-radius: 20px;
  width: 100%;
  padding: 18px 0 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}
.modal-score-label {
  font-size: 18px;
  font-weight: 500;
  color: #222;
  margin-bottom: 8px;
}
.modal-divider {
  width: 90%;
  border: none;
  border-top: 2px solid #D9D9D9;
  margin: 0 0 8px 0;
}
.modal-score-value {
  font-size: 24px;
  color: #B0B0B0;
  font-weight: 500;
  margin-bottom: 4px;
}
.modal-close-btn {
  background: #0094FF;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  border: none;
  border-radius: 24px;
  padding: 10px 48px;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.modal-close-btn:hover {
  background: #0077cc;
}
.left-label {
  min-width: 60px;
  margin-bottom: 8px;
  text-align: left;
}
.taller-textarea {
  min-height: 420px;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: #fff;
}


.main-wide {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 32px 3vw 0 3vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  box-sizing: border-box;
}

.logo-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 24px;
}
.center-logo {
  justify-content: center !important;
}
.logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}
.header-col {
  flex: 1 1 0;
  min-width: 260px;
}
.heading {
  color: #101828;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  margin-bottom: 8px;
}
.desc {
  color: #475467;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.select-col {
  min-width: 320px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.select-input {
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: 0px 1px 2px rgba(10, 12.67, 18, 0.05);
  border-radius: 8px;
  outline: 1px #D5D7DA solid;
  padding: 10px 14px;
  gap: 8px;
  width: 320px;
}
.dot {
  width: 10px;
  height: 10px;
  background: #12B76A;
  border-radius: 50%;
  margin-right: 8px;
}
.select {
  flex: 1;
  border: none;
  background: transparent;
  color: #717680;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  font-family: 'Inter', sans-serif;
  outline: none;
  padding-right: 24px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.chevron {
  width: 20px;
  height: 20px;
  display: inline-block;
  background: url('data:image/svg+xml;utf8,<svg width="10" height="5" viewBox="0 0 10 5" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L5 4L9 1" stroke="%23717680" stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
}

.problem-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0 24px 0;
  gap: 16px;
  width: 100%;
}
.line {
  width: 48px;
  height: 0;
  border-top: 2px solid #E3E3E3;
}
.problem-statement {
  color: #0F172A;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 24px;
  font-family: 'Inter', sans-serif;
  word-wrap: break-word;
  max-width: 600px;
  text-align: left;
}

.essay-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  flex: 1 1 0;
  width: 100%;
}
.align-right {
  align-items: flex-end;
}
.essay-label {
  color: #414651;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 4px;
}
.essay-input {
  width: 100%;
  min-height: 220px;
  background: #FAFAFA;
  color: #717680;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 24px;
  box-shadow: 0px 1px 2px rgba(10, 12.67, 18, 0.05);
  border-radius: 8px;
  outline: 1px #D5D7DA solid;
  padding: 16px 14px;
  border: none;
  resize: vertical;
  margin-bottom: 16px;
  max-width: 100vw;
  box-sizing: border-box;
}
.fill-right {
  align-self: flex-end;
}
.essay-form-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 8px;
}
.word-count {
  color: #475467;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  margin-left: 4px;
}
.submit-btn {
  padding: 12px 28px;
  background: #7F56D9;
  color: #fff;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 24px;
  border-radius: 8px;
  outline: 1px #7F56D9 solid;
  border: none;
  box-shadow: 0px 1px 2px rgba(10, 12.67, 18, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover {
  background: #6c47c6;
}
.submit-btn:disabled {
  background: #bdbdbd;
  cursor: not-allowed;
}
.essay-input:focus {
  border: 1.5px solid #7F56D9;
  background: #f3f0fa;
}

/* Error Modal Specific Styles */
#errorModal .modal-box {
  padding: 24px 18px 16px 18px;
  min-width: 240px;
  max-width: 340px;
}

#errorModal .modal-title {
  font-size: 16px;      /* Smaller title font */
  font-weight: 500;
  margin-bottom: 8px;
  text-align: center;
}

#errorModal .modal-score-box {
  min-height: 36px;     /* Smaller box */
  padding: 10px 0 6px 0;
  margin-bottom: 16px;
}

#errorModal .modal-score-value {
  font-size: 14px;      /* Smaller message font */
  font-weight: 400;
  color: #b0b0b0;
  text-align: center;
}
