.smartcoach-quiz-container { display: inline; font-family: inherit; }

.scq-btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 1.1em 2em;
    border-radius: 30px;
    font-size: 1.1em;
    text-transform: uppercase;
    font-style: italic;
    font-weight: bold;
    letter-spacing: .02em;
    transition: 0.2s all;
    outline: none;
    border: none;
    cursor: pointer;
    background: #111;
    color: #fff;
}

.scq-btn.scq-primary,
.scq-email-form button {
    background: #DC9600;
    color: #fff;
    border: none;
    font-weight: bold;
    font-style: italic;
    letter-spacing:.04em;
    text-transform: uppercase;
    border-radius: 30px;
}

.scq-btn.scq-primary:hover,
.scq-email-form button:hover,
.scq-btn.scq-primary:focus {
    background: #a97300;
    color: #fff;
}

.scq-btn[disabled] {
    opacity: .6;
    pointer-events: none;
}

.scq-modal {
    position: fixed;
    z-index: 999999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /*overflow: auto;*/
    font-family: inherit;
    padding-top: 100px; /* pushes content down to avoid header overlap */
    box-sizing: border-box;
}

/* Ensure children also stay above all other layouts */
.scq-modal * {
    position: relative;
    z-index: inherit;
}

.scq-modal-backdrop {
    position: absolute;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
}

.scq-modal-content {
    position: relative;
    max-width: 430px;
    width: calc(100vw - 26px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 32px #1115;
    padding: 2.3em 2em 2em 2em;
    font-family: inherit;
    border: 2px solid #DC9600;
}

@media (min-width: 1024px) {
    .scq-modal-content {
        max-width: 580px; /* wider container for desktops */
    }
}

.scq-modal-close {
    position: absolute;
    top: 1.1em;
    right: 1.1em;
    background: none;
    border: none;
    font-size: 2em;
    font-weight: bold;
    color: #111;
    cursor: pointer;
    opacity: .5;
    transition: opacity .16s;
    z-index: 1000000 !important;
}

.scq-modal-close:hover { opacity: 1; color:#DC9600; }

.scq-content-inner {
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Progress */
.scq-progress-bar {
    height: 8px;
    background: #f1f1f1;
    border-radius: 4px;
    margin: 1.2em 0;
    width: 100%;
    overflow: hidden;
}
.scq-progress {
    height: 100%;
    background: #DC9600;
    border-radius: 4px;
    transition: width .45s cubic-bezier(.4,2,.4,1);
}

/* Titles and Questions */
.scq-content-inner h2 {
    margin: 0 0 .9em 0;
    text-transform: uppercase;
    font-weight: bold;
    font-style: italic;
    font-size: 2.0em;
    color: #111;
    letter-spacing:.01em;
}

.scq-content-inner h3 {
    margin: 0 0 0.7em 0;
    text-transform: uppercase;
    font-weight: bold;
    font-style: italic;
    font-size: 1.25em;
    color: #DC9600;
}

.scq-step-counter {
    font-size: 0.98em;
    color: #888;
    text-align: right;
    margin-top: 1.5em;
    font-style: italic;
    letter-spacing:.01em;
}

.scq-q {
    margin-bottom: 1.2em;
}
.scq-q .scq-btn {
    margin: 0.5em 0;
    background: #111;
    color: #fff;
    border: 2px solid #111;
    box-shadow: none;
}
.scq-q .scq-btn:hover,
.scq-q .scq-btn:focus {
    background: #DC9600;
    color: #fff;
    border: 2px solid #DC9600;
}

.scq-result-container {
    margin: 1.5em 0 0 0;
    padding: 0;
    text-align: center;
}

.scq-type {
    font-size: 1.5em;
    color: #DC9600;
    margin: 0.6em 0 0.5em 0;
    text-transform: uppercase;
    font-style: italic;
    font-weight: bold;
    letter-spacing:.02em;
}

.scq-type-desc {
    font-size: 1.15em;
    color: #222;
    margin: 0.5em 0;
    font-weight: 400;
    font-style: italic;
}

.scq-type-advice {
    margin: 1.2em auto;
    background: #fff9ed;
    color: #111;
    border-left: 6px solid #DC9600;
    border-radius: 4px;
    padding: 1em 1.2em;
    font-size: 1.04em;
    font-style: italic;
}

.scq-email-form {
    margin: 2.1em 0 1em 0;
    text-align: left;
}

.scq-email-input {
    display: block;
    width: 100%;
    padding: 10px 20px !important;
    font-size: 1em;
    border-radius: 30px;
    border: 1.5px solid #DC9600;
    margin-bottom: 1em;
    background: #fff;
    color: #111;
    font-style: italic;
    font-weight: 500;
    transition: border .16s;
}

.scq-email-input:focus {
    outline: none;
    border: 2px solid #DC9600;
    background: #fffbe6;
}

.scq-success {
    color: #10aa02;
    font-weight: bold;
    font-size: 1.2em;
    margin: 1.4em 0 2em 0;
}

a.scq-btn[href] {
    background: #fff;
    color: #DC9600;
    border: 2px solid #DC9600;
    text-decoration: none;
}
a.scq-btn[href]:hover {
    background: #DC9600;
    color: #fff;
}

.smartcoach-quiz-error {
    color: #e60000; font-weight: bold;
    background: #fff0ef;
    border: 2px solid #e60000;
    border-radius: 8px;
    padding: .8em 1em;
    margin: 1em 0;
}

.scq-intro-block {
    margin-bottom: 1.5em;
    text-align: left;
}
.scq-intro-block h3 { margin-bottom: .6em; font-size:1.5em; }
.scq-intro-block p { font-size: 1.05em; line-height: 1.5; }

/* Responsive */
@media (max-width: 600px) {
    .scq-modal-content { padding: 1em 0.6em 1.2em 0.6em; }
    .scq-content-inner h2 { font-size: 1.2em; }
    .scq-content-inner h3 { font-size: 1em; }
}
