
/* ── LOGO BANNER (site wrapper above quiz) ── */
.logo-banner {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding: 18px 28px;
  text-align: center;
  width: 100%;
}
.logo-banner-img {
  height: 90px;
  width: auto;
  max-width: 340px;
  display: inline-block;
}
/* =============================================================
   KIND STEPS — STYLESHEET
   Brand colour: #D85436
   ============================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 12px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ================================================ */
/* LOGO / HEADER BANNER                             */
/* ================================================ */

.logo-container {
    text-align: center;
    padding: 18px 30px 16px;
    background-color: #ffffff;
    border-bottom: 2px solid #e0e0e0;
    /* Fixed height so the logo always sits in a clean band */
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    /* 308×66 native — display at 2× natural size but cap at container */
    max-width: 280px;
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ================================================ */
/* PROGRESS BAR                                     */
/* ================================================ */

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 0;
}

.progress-fill {
    height: 100%;
    background: #D85436;
    transition: width 0.3s ease;
    width: 6.67%;
}

.progress-text {
    text-align: center;
    padding: 10px 15px;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

/* ================================================ */
/* QUIZ SECTION — compact so full Q fits on screen  */
/* ================================================ */

.quiz-section {
    padding: 14px 28px 18px;
}

.question-container {
    margin-bottom: 14px;
    animation: fadeIn 0.35s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.question-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 14px;
    padding-bottom: 14px;
    font-weight: 600;
    line-height: 1.4;
    border-bottom: 3px solid #D85436;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.option {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    background-color: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option:hover {
    background-color: #fdf1ee;
    border-color: #D85436;
    transform: translateX(4px);
}

.option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 13px;
    cursor: pointer;
    accent-color: #D85436;
    flex-shrink: 0;
}

.option-label {
    font-size: 15px;
    color: #333;
    cursor: pointer;
    flex: 1;
    line-height: 1.4;
}

.option input[type="radio"]:checked + .option-label {
    font-weight: 600;
    color: #D85436;
}

.option:has(input[type="radio"]:checked) {
    background-color: #fdf1ee;
    border-color: #D85436;
    box-shadow: 0 2px 8px rgba(216, 84, 54, 0.15);
}

/* ================================================ */
/* NAVIGATION BUTTONS                               */
/* ================================================ */

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 12px;
}

.nav-btn,
.submit-btn,
.restart-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-btn {
    background-color: #607D8B;
    color: white;
}

.nav-btn:hover {
    background-color: #546E7A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 125, 139, 0.3);
}

.nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn {
    background: #D85436;
    color: white;
    flex: 1;
    max-width: 280px;
    margin: 0 auto;
}

.submit-btn:hover {
    background: #c04a2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(216, 84, 54, 0.35);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ================================================ */
/* CONTACT DETAILS SECTION                          */
/* ================================================ */

.contact-section {
    padding: 44px 40px 52px;
    animation: fadeIn 0.5s ease-in;
}

.contact-container {
    max-width: 560px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #D85436;
    color: white;
    font-size: 26px;
    border-radius: 50%;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(216, 84, 54, 0.3);
}

.contact-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.contact-subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto;
}

/* Two-column name row */
.contact-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.contact-fields-row .form-group {
    margin-bottom: 0;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.required-star {
    color: #e53935;
    margin-left: 2px;
}

.form-input {
    padding: 12px 15px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background-color: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-input:focus {
    border-color: #D85436;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(216, 84, 54, 0.12);
}

.form-input.input-error {
    border-color: #e53935;
    background-color: #fff8f8;
}

.form-input.input-error:focus {
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.field-error {
    display: block;
    font-size: 13px;
    color: #e53935;
    margin-top: 5px;
    min-height: 18px;
}

/* ================================================ */
/* CONSENT / PRIVACY CHECKBOX                       */
/* ================================================ */

.consent-group {
    margin-bottom: 10px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    background-color: #fdf8f7;
    border: 2px solid #f0d5cf;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.consent-label:hover {
    border-color: #D85436;
}

.consent-checkbox {
    /* Custom styled checkbox */
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.2s ease;
    margin-top: 1px;
    position: relative;
    flex-shrink: 0;
}

.consent-checkbox:checked {
    background-color: #D85436;
    border-color: #D85436;
}

/* Checkmark tick via pseudo-element */
.consent-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 8px;
    height: 12px;
    border: 2.5px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.consent-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(216, 84, 54, 0.2);
}

.consent-text {
    font-size: 14px;
    color: #444;
    line-height: 1.55;
}

/* Error state on the whole consent label */
.consent-label.consent-error {
    border-color: #e53935;
    background-color: #fff8f8;
}

.privacy-note {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.5;
}

.contact-actions {
    text-align: center;
}

.contact-submit-btn {
    display: inline-block;
    padding: 14px 48px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: white;
    background: #D85436;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(216, 84, 54, 0.3);
}

.contact-submit-btn:hover {
    background: #c04a2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(216, 84, 54, 0.4);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* ================================================ */
/* CONTACT SUBMIT — BUTTON STATES                   */
/* ================================================ */

.contact-submit-btn.btn-saving {
    background: #b8614a;
    cursor: not-allowed;
    opacity: 0.85;
    transform: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.contact-submit-btn.btn-done {
    background: #2e7d32;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3);
    transform: none;
}

.btn-spinner {
    display: inline-block;
    width: 17px;
    height: 17px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: ks-spin 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes ks-spin {
    to { transform: rotate(360deg); }
}

/* ================================================ */
/* RESULTS SECTION                                  */
/* ================================================ */

.results-section {
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

.results-container {
    text-align: center;
}

.results-container h1 {
    font-size: 30px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.results-greeting {
    font-size: 17px;
    color: #555;
    margin-bottom: 14px;
    font-style: italic;
}

.score-display {
    background: #D85436;
    color: white;
    padding: 18px 20px;
    border-radius: 10px;
    margin: 18px 0 26px;
    font-size: 18px;
    font-weight: 600;
}

.report-content {
    background-color: #f9f9f9;
    padding: 28px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    margin: 26px 0;
    text-align: left;
}

.report-content h2 {
    color: #D85436;
    margin-bottom: 14px;
    font-size: 22px;
}

.report-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    margin-top: 12px;
    font-size: 15px;
}

.report-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.report-content ul {
    margin-left: 22px;
    margin-bottom: 14px;
}

.report-content li {
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 15px;
}

.restart-btn {
    background-color: #607D8B;
    color: white;
    margin-top: 12px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.restart-btn:hover {
    background-color: #546E7A;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(96, 125, 139, 0.3);
}

/* ================================================ */
/* TOAST NOTIFICATION                               */
/* ================================================ */

.ks-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    min-width: 280px;
    max-width: 480px;
    padding: 13px 22px;
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    opacity: 0;
}

.ks-toast.ks-toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.ks-toast--success { background-color: #2e7d32; }
.ks-toast--warn    { background-color: #D85436; }
.ks-toast--error   { background-color: #c62828; }

/* ================================================ */
/* RESPONSIVE DESIGN                                */
/* ================================================ */

@media (max-width: 768px) {
    body { padding: 10px; }

    .container { margin: 0; border-radius: 8px; }

    .logo-container {
        padding: 14px 20px 12px;
        min-height: 60px;
    }

    .logo-container img {
        max-width: 200px;
        max-height: 46px;
    }

    .quiz-section,
    .results-section,
    .contact-section {
        padding: 16px 18px 20px;
    }

    .question-title { font-size: 15px; }

    .option { padding: 10px 13px; }

    .option-label { font-size: 15px; }

    .navigation {
        flex-direction: column;
        gap: 6px;
    }

    .nav-btn,
    .submit-btn {
        width: 100%;
        text-align: center;
    }

    /* Stack name fields on mobile */
    .contact-fields-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-title { font-size: 21px; }

    .contact-submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .question-title  { font-size: 15px; }
    .option-label    { font-size: 14px; }
    .option input[type="radio"] { width: 17px; height: 17px; margin-right: 10px; }
    .contact-icon    { width: 50px; height: 50px; font-size: 20px; }

    .ks-toast {
        min-width: calc(100vw - 24px);
        bottom: 14px;
    }
}
