/* CV Upload area */
.cv-upload-content {
    text-align: center;
    margin: 30px;
}

.cv-upload-content .title {
    font-size: 36px;
    color: #222;
    text-decoration: underline;
    text-decoration-color: #ffd700;
    text-underline-offset: 5px;
    text-decoration-thickness: 5px;
}

.upload-area {
    box-sizing: border-box;
    position: relative;
    border: 5px dashed #ffd700;
    background: rgba(255, 204, 0, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin: 40px auto 0;
    max-width: 500px;
}

.upload-area h2 { font-weight: 600; }

input[type="file"] {
    display: none;
}

.file-upload {
    position: relative;
    width: 140px;
    height: 60px;
    background: #ffd700;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.legal {
    max-width: 500px;
    margin: 40px auto 0;
}

.loader {
    display: none;  
  width: 30px;
  padding: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f9f9f9;
  --_m: 
    conic-gradient(#0000 10%,#000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {to{transform: rotate(1turn)}}

/* Tailor CV Modal */
#tailorModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.tailor-box {
  background: #fff;
  padding: 18px;
  border-radius: 15px;
  width: 500px;
  box-sizing: border-box;
  border: 5px solid #ffd700;
}

.tailor-box .highlight {
    text-decoration-thickness: 3px;
}

.tailor-box .legal {
    margin-top: 15px;
}

.tailor-actions {
  display: flex;
  gap: 8px;
}

.btn-muted {
  background: #eee;
  color: #222;
}

#tailorForm {
  display: none;
  margin-top: 8px;
}

#tailorForm label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

#jobDescription {
  width: 100%;
  height: 120px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid #ddd;
  resize: vertical;
}

.tailor-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.tailor-actions .button, .tailor-form-actions .button {
    padding: 15px 35px;
}

.tailor-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
  align-items: center;
}