/* Hero Driver Survey — Frontend (matches .forma theme style) */

.hds-container {
    max-width: 100%;
    box-sizing: border-box;
}
.datepost {
    display: none;
}

/* ---- Form wrapper (mirrors .forma) ---- */
.hds-survey-wrap {
    position: relative;
    display: block;
    /* background: rgba(243, 243, 243, 0.95); */
    /* padding: 2vw; */
    /* border-radius: 1.3vw; */
    /* font-family: inherit; */
    /* font-style: normal; */
}
.hds-survey-wrap * {
    font-style: normal;
}

/* ---- Loading overlay ---- */
.hds-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: inherit;
}
.hds-loading-overlay.hds-active {
    display: flex;
}
.hds-loading-spinner {
    border: 4px solid #ccc;
    border-top: 4px solid #F78154;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: hds-spin 1s linear infinite;
}
@keyframes hds-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---- Success message ---- */
.hds-success-message {
    text-align: center;
    padding: 3vw 1vw;
}
.hds-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4vw;
    height: 4vw;
    border-radius: 50%;
    background: #F78154;
    color: #fff;
    font-size: 2vw;
    font-weight: 700;
    margin-bottom: 1vw;
}
.hds-success-message h3 {
    font-size: 3vw;
    font-weight: 500;
    color: #0C0604;
    margin: 0.5vw 0;
}
.hds-success-message p {
    font-size: 1.1vw;
    color: #6C6A68;
}

/* ---- Notice (already completed / error) ---- */
.hds-notice {
    padding: 2vw;
    font-size: 1.3vw;
    text-align: center;
    border-radius: 0.5vw;
    background: #FFF9F6;
    border: 1px solid #F78154;
    color: #0C0604;
}
.hds-notice--error {
    border-color: #c0392b;
    color: #c0392b;
}

/* ---- Fields (mirrors .inputs / .input) ---- */
.hds-fields {
    display: flex;
    flex-direction: column;
    gap: 2vw;
    margin: 2vw 0 0 0;
}
.hds-field {
    display: flex;
    flex-direction: column;
    gap: 0.9vw;
    margin-top: 1.6vw;
    padding: 1.6vw;
    background: #fff;
    border: 1px solid rgba(12,6,4,0.08);
    border-radius: 1vw;
    box-shadow: 0 0.6vw 1.6vw rgba(12,6,4,0.08);
}
.hds-field:first-child {
    margin-top: 0;
}
.hds-label {
    display: block;
    font-size: 1.1vw;
    font-weight: 400;
    color: #6C6A68;
    line-height: 1.5;
}
.hds-label em {
    font-weight: 400;
    color: #F78154;
}
.hds-question {
    font-size: 1.4vw;
    font-weight: 500;
    color: #0C0604;
    line-height: 1.4;
    margin: 0;
}
.hds-question-hint {
    font-weight: 500;
    color: #F78154;
    font-size: 0.95vw;
    font-style: normal;
    /* background: #F78154; */
    padding: 0.2vw 0.6vw;
    border-radius: 0.6vw;
    text-transform: none;
    letter-spacing: 0.03em;
    display: inline-block;
    margin-top: 0.2vw;
}
.hds-required {
    color: #F78154;
}
.hds-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin: 1vw 0;
}

/* ---- Driver search-select (mirrors .selectbox) ---- */
.hds-driver-select {
    position: relative;
    width: 100%;
}
.hds-select-display {
    display: block;
    padding: 1vw;
    background: #D9D9D9;
    border-radius: 0.5vw;
    font-size: 1.2vw;
    color: #6C6A68;
    cursor: pointer;
    user-select: none;
}
.hds-select-display.hds-selected {
    color: #0C0604;
}
.hds-select-display.hds-locked {
    cursor: default;
    opacity: 0.75;
    background: #c8c5c3;
}
.hds-driver-locked {
    display: block;
    padding: 1vw;
    background: #FFF9F6;
    border: 1px solid rgba(247,129,84,0.35);
    border-radius: 0.6vw;
    font-size: 1.2vw;
    color: #0C0604;
}
.hds-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #D9D9D9;
    border-radius: 0 0 0.5vw 0.5vw;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 20vw;
    overflow: hidden;
    flex-direction: column;
}
.hds-select-dropdown.hds-open {
    display: flex;
}
.hds-select-search {
    display: block;
    width: 100%;
    padding: 0.8vw 1vw;
    border: none;
    border-bottom: 1px solid #D9D9D9;
    font-size: 1.1vw;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.hds-select-options {
    overflow-y: auto;
    max-height: 16vw;
}
.hds-select-option {
    padding: 0.8vw 1vw;
    font-size: 1.1vw;
    cursor: pointer;
    color: #0C0604;
    transition: background 0.15s;
}
.hds-select-option:hover {
    background: #FFF9F6;
    color: #F78154;
}

/* ---- Radio & Checkbox options ---- */
.hds-options {
    display: flex;
    flex-direction: column;
    gap: 0.9vw;
}
.hds-radio-label,
.hds-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6vw;
    padding: 0.7vw 1vw;
    background: #FFF9F6;
    border-radius: 0.4vw;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 1.1vw;
    line-height: 1.5;
    color: #0C0604;
}
.hds-radio-label:hover,
.hds-checkbox-label:hover {
    background: #f3eae6;
}
.hds-radio-label input,
.hds-checkbox-label input {
    margin-top: 0.25vw;
    accent-color: #F78154;
    width: 1.1vw;
    height: 1.1vw;
    flex-shrink: 0;
}
.hds-checkbox-label input:disabled + span {
    opacity: 0.45;
}

/* ---- Other text input ---- */
.hds-other-wrapper {
    padding: 0.3vw 0 0 2vw;
}
.hds-text-input {
    display: block;
    width: 100%;
    padding: 1vw;
    background: #D9D9D9;
    border: none;
    border-radius: 0.5vw;
    font-size: 1.2vw;
    color: #333;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

/* ---- Textarea ---- */
.hds-textarea {
    display: block;
    width: 100%;
    padding: 1vw;
    background: #D9D9D9;
    border: none;
    border-radius: 0.5vw;
    font-size: 1.2vw;
    color: #333;
    outline: none;
    resize: vertical;
    min-height: 6vw;
    box-sizing: border-box;
    font-family: inherit;
}

/* ---- Submit button (mirrors .forma input[type=submit]) ---- */
.hds-submit-btn {
    display: block;
    width: 100%;
    padding: 1.3vw;
    background: #0C0604;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.3vw;
    font-weight: 550;
    border: none;
    border-radius: 0.5vw;
    cursor: pointer;
    font-family: inherit;
    margin: 1vw 0 0 0;
    transition: opacity 0.2s;
}
.hds-submit-btn:hover {
    opacity: 0.8;
}
.hds-submit-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* ================================================================== */
/*  RESPONSIVE (max-width: 700px) — mirrors theme mobile              */
/* ================================================================== */
@media (max-width: 700px) {
    .hds-survey-wrap {
        padding: 5vw;
        border-radius: 4vw;
    }

    /* Success */
    .hds-success-icon {
        width: 12vw;
        height: 12vw;
        font-size: 6vw;
        margin-bottom: 3vw;
    }
    .hds-success-message h3 {
        font-size: 7vw;
    }
    .hds-success-message p {
        font-size: 3.3vw;
    }

    /* Notice */
    .hds-notice {
        padding: 5vw;
        font-size: 3.7vw;
        border-radius: 2vw;
    }

    /* Fields */
    .hds-fields {
        gap: 4vw;
    }
    .hds-field {
        gap: 1.2vw;
        padding: 4vw;
        border-radius: 2vw;
    }
    .hds-label {
        font-size: 3.3vw;
    }
    .singlepage h3 {
        display: block;
        font-size: 3.7vw;
        line-height: 4.8vw;
        color: #0C0604;
        font-weight: 600;
    }
    .hds-divider {
        margin: 3vw 0;
    }

    /* Select */
    .hds-select-display {
        padding: 3vw;
        font-size: 3.6vw;
        border-radius: 1vw;
    }
    .hds-driver-locked {
        padding: 3vw;
        font-size: 3.6vw;
        border-radius: 1vw;
    }
    .hds-select-dropdown {
        border-radius: 0 0 1vw 1vw;
        max-height: 60vw;
    }
    .hds-select-search {
        padding: 3vw;
        font-size: 3.6vw;
    }
    .hds-select-options {
        max-height: 50vw;
    }
    .hds-select-option {
        padding: 3vw;
        font-size: 3.6vw;
    }

    /* Options */
    .hds-options {
        gap: 3vw;
    }
    .hds-radio-label,
    .hds-checkbox-label {
        gap: 2vw;
        padding: 3vw;
        border-radius: 2vw;
        font-size: 3.6vw;
    }
    .hds-radio-label input,
    .hds-checkbox-label input {
        width: 4.5vw;
        height: 4.5vw;
        margin-top: 0.5vw;
    }

    /* Other input */
    .hds-other-wrapper {
        padding: 1vw 0 0 6vw;
    }
    .hds-text-input {
        padding: 3vw;
        font-size: 3.6vw;
        border-radius: 1vw;
    }

    /* Textarea */
    .hds-textarea {
        padding: 3vw;
        font-size: 3.6vw;
        border-radius: 1vw;
        min-height: 20vw;
    }

    /* Submit */
    .hds-submit-btn {
        padding: 2.6vw;
        border-radius: 1vw;
        font-size: 3.6vw;
        margin: 2vw 0 0 0;
    }
}
