@font-face {
    font-family: 'Santral-ExtraBold';
    src: url('/forms/data-wfd-form/Santral-ExtraBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Santral-Medium';
    src: url('/forms/data-wfd-form/Santral-Medium.woff2') format('woff2');
}

#jobRoleSummary {
    height: 160px;
    min-height: 160px;
    resize: vertical;
    line-height: 1.5;
    padding: 12px;
    font-size: 16px;
}

#programmeBenefit {
    height: 160px;
    min-height: 160px;
    resize: vertical;
    line-height: 1.5;
    padding: 12px;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Santral-Medium', sans-serif;
    background-color: #000033;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 40px 16px;
    box-sizing: border-box;
}

.form-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
    width: 100%;
    max-width: 1800px;
    text-align: center;
}

.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
}

.hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.maikai-logo-bg {
    background-color: #F66864;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: -8px;
}

.maikai-logo {
    max-width: 228px;
    width: 100%;
    height: auto;
    display: block;
}

.form-page-title {
    margin: 0;
    color: #ffffff;
    font-family: 'Santral-ExtraBold', sans-serif;
    font-size: 34px;
    line-height: 1.15;
}

.form-page-subtitle {
    margin: 10px 0 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.4;
}

.signup-form {
    background-color: white;
    border-radius: 12px;
    max-width: 1800px;
    width: 100%;
    margin: 40px auto;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.form-header {
    background-color: #F0F2F5;
    padding: 20px;
    text-align: center;
}

.form-header h1 {
    font-size: 24px;
    color: #000033;
    background-color: #F0F2F5;
    margin: 0 0 10px 0;
    font-family: 'Santral-ExtraBold', sans-serif;
}

.steps-indicator {
    display: flex;
    background-color: #F0F2F5;
    padding: 15px 40px;
    justify-content: space-between;
    font-family: 'Santral-Medium', sans-serif;
}

.steps-indicator div {
    font-size: 16px;
    color: #000033;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}

.steps-indicator div.active {
    background: linear-gradient(90deg, #F66864, #E5005B);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
}

.steps-indicator div:not(.active) {
    margin-top: 3px;
}

.signup-form .form-container {
    padding: 20px 40px;
    flex-grow: 1;
}

.signup-form h2 {
    color: #000033;
    text-align: left;
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #F66864;
    padding-bottom: 10px;
    font-family: 'Santral-ExtraBold', sans-serif;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    font-size: 20px;
    color: #000033;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #F66864;
    box-shadow: 0 0 5px rgba(244, 155, 0, 0.3);
}

.form-group textarea {
    width: 100%;
    max-width: 100%;
    height: 44px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
}

textarea {
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.two-cols {
    display: flex;
    gap: 30px;
}

.two-cols .form-group {
    flex: 1;
}

.search-container {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.search-container input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: none;
    outline: none;
}

.search-container input[type="button"] {
    background: linear-gradient(90deg, #F66864, #E5005B);
    color: white;
    font-weight: bold;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
    width: 15%;
}

.search-container input[type="button"]:hover {
    background: linear-gradient(90deg, #E5005B, #F66864);
}

.form-footer {
    padding: 20px 40px;
    background: linear-gradient(90deg, #F66864, #E5005B);
    background-size: 200% 200%;
    animation: gradientAnimation 5s ease infinite;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-footer button {
    padding: 12px 24px;
    background-color: white;
    color: #000033;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-footer button:hover {
    background-color: #000033;
    color: white;
}

.form-footer-index {
    display: flex;
    justify-content: flex-end;
    padding: 20px 40px;
    background: linear-gradient(90deg, #F66864, #E5005B);
    background-size: 200% 200%;
    animation: gradientAnimation 5s ease infinite;
}

.form-footer-index button {
    padding: 12px 24px;
    background-color: white;
    color: #000033;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-footer-index button:hover {
    background-color: #000033;
    color: white;
}

.hidden {
    display: none !important;
    visibility: visible;
    opacity: 1;
}

.duties-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #F66864;
}

.duties-container h3 {
    margin-top: 0;
    color: #000033;
    font-family: 'Santral-ExtraBold', sans-serif;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.thank-you-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 24px;
    color: #000033;
    padding: 40px;
    font-family: 'Santral-Medium', sans-serif;
}

.checkmark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #F66864, #E5005B);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.checkmark::before {
    content: "";
    width: 20px;
    height: 10px;
    border-left: 5px solid white;
    border-bottom: 5px solid white;
    transform: rotate(-45deg);
}

.error-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #000;
    font-size: 12px;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #ccc;
    z-index: 1;
}

.input-error {
    border-color: red;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
}

.error-tooltip::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

.add-button {
    display: inline-block;
    margin-top: 10px;
    background: linear-gradient(90deg, #F66864, #e5005b);
    color: white;
    font-weight: bold;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.add-button:hover {
    background: linear-gradient(90deg, #e5005b, #F66864);
}

.remove-button {
    display: inline-block;
    background: linear-gradient(90deg, #F66864, #e5005b);
    color: white;
    font-weight: bold;
    border: none;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
    margin-top: 5px;
}

.remove-button:hover {
    background: linear-gradient(90deg, #e5005b, #F66864);
}

.employment-entry, .qualification-entry {
    display: flex;
    padding: 5px;
    gap: 10px;
    align-items: center;
}

.employment-entry input, .qualification-entry input, .employment-entry select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#question8Employment {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 10px;
}

.question-container:not(.hidden) #question8Employment {
    display: block !important;
}

.question-container {
    margin-bottom: 20px;
    margin-top: 10px;
    align-items: center;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid transparent;
    border-top: 4px solid #F66864;
    border-right: 4px solid #F66864;
    border-bottom: 4px solid #e5005b;
    border-left: 4px solid #e5005b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.choices {
    width: 100% !important;
}

.choices__inner {
    padding: 2px 12px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background-color: white !important;
    font-family: 'Santral-Medium', sans-serif !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
}

.choices__input {
    background-color: transparent !important;
    font-family: 'Santral-Medium', sans-serif !important;
    font-size: 16px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.choices__list--dropdown {
    width: 100% !important;
    border: 1px solid #ddd !important;
    border-radius: 0 0 8px 8px !important;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background: linear-gradient(90deg, #F66864, #E5005B);
    color: white;
}

.choices-list-dropdown {
    max-height: 250px !important;
    overflow-y: auto !important;
}

.choices-container {
    width: 100% !important;
    font-size: 16px;
}

.choices__list--dropdown .choices__item {
    padding: 10px !important;
}

.choices__inner {
    min-height: 44px !important;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.choices__input {
    border: 1px solid #ccc !important;
    padding: 8px !important;
    border-radius: 4px;
}

.signup-form {
    background-color: white;
    border-radius: 12px;
    max-width: 1800px;
    width: 100%;
    margin: 40px auto;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.form-container {
    padding: 20px 40px;
    flex-grow: 1;
    background-color: white;
    display: block;
}

#qualificationsSection.form-container {
    min-height: 400px;
    width: 95%;
}

#qualificationsSection .form-footer {
    display: none;
}

.date-input-container {
    position: relative;
    width: 100%;
}

.date-input-container input {
    width: 100%;
    padding: 10px;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Santral-Medium', sans-serif;
    outline: none;
    transition: all 0.3s;
}

.date-input-container input:focus {
    border-color: #F66864;
    box-shadow: 0 0 5px rgba(244, 155, 0, 0.3);
}

.date-input-container::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(90deg, #F66864, #E5005B);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") no-repeat center center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") no-repeat center center;
    pointer-events: none;
}

.flatpickr-calendar {
    font-family: 'Santral-Medium', sans-serif;
    box-shadow: 0 3px 13px rgba(0,0,0,0.15);
    border-radius: 8px;
    border: none;
    background: white;
}

.flatpickr-months {
    background: linear-gradient(90deg, #F66864, #E5005B);
    border-radius: 8px 8px 0 0;
    padding: 10px 0;
}

.flatpickr-current-month {
    font-family: 'Santral-ExtraBold', sans-serif;
    padding: 8px 0;
    color: white !important;
}

.flatpickr-current-month .cur-month,
.flatpickr-current-month .cur-year {
    color: white !important;
    font-weight: bold !important;
}

.flatpickr-months .flatpickr-monthDropdown-months {
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px;
    font-family: 'Santral-Medium', sans-serif;
}

.flatpickr-weekday {
    font-family: 'Santral-Medium', sans-serif;
    color: #000033;
}

.flatpickr-day {
    font-family: 'Santral-Medium', sans-serif;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #000033;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: linear-gradient(90deg, #F66864, #E5005B);
    border-color: transparent;
    color: white;
}

.flatpickr-day:hover {
    background: rgba(244, 155, 0, 0.2);
    border-color: transparent;
}

.flatpickr-day.today {
    border-color: #F66864;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: white !important;
    padding: 10px;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    fill: rgba(255, 255, 255, 0.8) !important;
}

.numInputWrapper {
    position: relative;
    height: auto !important;
}

.numInputWrapper span {
    display: inline-block !important;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 1000;
    display: none;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.signature-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 100%;
}

.signature-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.date-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
}

.date-column label {
    font-weight: bold;
    margin-bottom: 5px;
}

#signatureDate {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 260px;
    height: 75px;
    font-size: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-preview {
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 50px;
    width: 220px;
    text-align: center;
    padding: 10px;
    font-size: 18px;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.signature-button {
    background: linear-gradient(90deg, #F66864, #E5005B);
    color: white;
    font-weight: bold;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.signature-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}

.button-outline {
    border: 2px solid transparent;
    background: none;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border-radius: 6px;
    position: relative;
}

.button-outline::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    padding: 2px;
    background: linear-gradient(90deg, #E5005B, #F66864);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.button-outline:hover {
    color: #E5005B;
}

.signature-img {
    max-width: 100%;
    max-height: 100px;
}

.signature-styles {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-height: 120px;
    overflow-y: auto;
}

.signature-style {
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    border: 2px solid #ddd;
    text-align: center;
    width: 150px;
    height: 50px;
    font-family: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-style.selected {
    border: 2px solid transparent;
    background-clip: padding-box;
    background-origin: border-box;
    border-image-source: linear-gradient(90deg, #E5005B, #F66864);
    border-image-slice: 1;
}

.save-signature {
    background: linear-gradient(90deg, #E5005B, #F66864);
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.close-modal {
    background: #dc3545;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#signaturePad {
    width: 100% !important;
    max-width: 400px;
    height: 150px;
    border: 1px solid #ddd;
    background: white;
    display: block;
    margin: auto;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#uploadPreview img {
    max-width: 100%;
    max-height: 100px;
    margin-top: 10px;
}

#drawSignatureSection {
    text-align: center;
}

.qualification-entry {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.qualification-entry input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.employment-entry {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.employment-entry input,
.employment-entry select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bespoke-select {
    margin-bottom: 10px;
}

.expert-checkboxes {
    margin-top: 10px;
}

.error-tooltip--inline {
    position: static;
    transform: none;
    margin-top: 4px;
}

/* Year-select styling (englishGradeDate, mathsGradeDate, FE ladder dates, RPL date) */
.year-select {
    color: #999;
}

.year-select:invalid {
    color: #999;
}

.year-select:valid {
    color: #333;
}

.year-select option[value=""] {
    color: #999;
}

.year-select option:not([value=""]) {
    color: #333;
}

/* Progressive disclosure reveal animation */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeSlideIn 0.25s ease;
}

/* Guidance / explainer box shown alongside a question */
.info-box {
    background-color: #F0F2F5;
    border-left: 4px solid #F66864;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 8px 0 15px;
    font-size: 14px;
    color: #333;
}

/* Fixed set of "five key duties" text inputs */
.five-duties-group .duty-input {
    margin-bottom: 10px;
}

/* Further Education level cascade */
.fe-level {
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.fe-level:first-of-type {
    border-top: none;
    padding-top: 0;
}
