/* style.css */
.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    text-align: center;
}

.centered-container p {
    font-size: 1.2em;
    margin-top: -10px;
}

h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
}

form {
    max-width: 900px;
    margin: 0 auto;

    padding: 30px 30px 40px 30px;
    border-radius: 10px;

    box-sizing: border-box;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input::placeholder {
    color: #9a9ca3; /* или нужный серый */
    opacity: 1;
}

.thanks-box {
    max-width: 500px;
    margin: 100px auto;
    padding: 40px;
    background: #fff;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background-color: #eee;
    border-radius: 8px;
    height: 16px;
    margin: 10px 0 20px;
    overflow: hidden;
}

.progress-fill {
    background-color: #4caf50;
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
}

form.main-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px 30px 40px 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
}

/* Сброс стилей для инлайн-форм внутри .user-actions */
.user-actions form {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    display: contents;
    /* полностью убирает форму из DOM flow, только поля и кнопки */
}

/* Одинаковая ширина/высота всех кнопок и псевдокнопок */
.btn-report,
.regen-btn,
.user-actions .notfound {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    min-width: 240px;
    padding: 0 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    line-height: 1.2;
    vertical-align: middle;
    box-sizing: border-box;
    box-shadow: none;
    margin: 0;
}

/* Для кнопок-ccылок убираем подчеркивание */
.btn-report {
    background: #3a84ff;
    color: #fff;
    text-decoration: none;
}

.btn-report:hover {
    background: #2871d4;
}

.regen-btn {
    background: #9cdb2d;
    color: #222;
    text-decoration: none;
    border: none;
}

.regen-btn:hover {
    background: #75ba06;
    color: #fff;
}

.user-actions .notfound {
    background: #fbeaea;
    color: #d32f2f;
    border: 1px solid #f8d7da;
    cursor: not-allowed;
    pointer-events: none;
}

/* Сброс стандартных браузерных стилей у .regen-btn */
.user-actions button.regen-btn {
    border: none;
    outline: none;
    background: #9cdb2d;
    padding: 0 28px;
    min-width: 240px;
    height: 56px;
    font-size: 16px;
    font-family: inherit;
}

/* Чтобы <a> и <button> были абсолютно одинаковыми */
.user-actions a.btn-report {
    height: 56px;
    min-width: 240px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Главный flex-контейнер */
.form-review-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: #fff;
}
@media (max-width: 900px) {
    .form-review-container {
        flex-direction: column;
        min-height: 100vh;
    }
}
/* Блок с отзывом */
.review-block {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #F9EBE4;
    width: 50%;
    min-width: 480px;
    min-height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
}
@media (max-width: 900px) {
    .review-block {
        display: none;
    }
}

/* Логотип + надпись disc360 (в ЛЕВОМ верхнем углу) */
.logo-block {
    position: absolute;
    top: 42px;
    left: 44px;
    display: flex;
    align-items: center;
    width: 149px;
    height: 42px;
    gap: 14px;
}
.logo-icon {
    width: 44px;
    height: 48px;
}
.logo-text {
    font-family: 'Roboto', 'Inter', Arial, sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 44px;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* MOBILE: логотип в центре */
.form-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 14px;                /* Отступ между иконкой и disc360, как в макете */
    width: 139px;
    height: 48px;
    margin: 0 auto 27px auto; /* По центру формы и 27px вниз до заголовка */
    position: static;         /* Обязательно, чтобы лого участвовал в потоке */
}

@media (max-width: 900px) {
    .form-logo {
        display: flex;
    }
    .logo-block {
        display: none;
    }
}


/* Центр содержимого */
.review-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
    gap: 32px;
    max-width: 656px;
    margin: 0 auto;
    width: 100%;
}
.review-quote {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 38px;
    color: #181D27;
    text-align: center;
    margin: 0;
    max-width: 560px;
}

/* Блок с автором */
.review-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    padding: 18px 0;
}
.avatar {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: none;
    box-shadow: none;
    border: none;
    display: block;
}
.author-name {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #181D27;
    text-align: center;
    margin: 0;
}
.author-role,
.author-desc {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #535862;
    text-align: center;
    margin: 0;
}
.stars {
    font-size: 24px;
    color: #FFB400;
    margin-top: 8px;
    text-align: center;
    letter-spacing: 3px;
    letter-spacing: 4px;
}
.review-copyright {
    position: absolute;
    left: 32px;
    bottom: 32px;
    color: #aaa;
    font-size: 14px;
    font-family: 'Inter', Arial, sans-serif;
    opacity: 0.93;
    display: block;
}

.copyright-mobile {
    display: none;
}

@media (max-width: 900px) {
    .review-copyright { display: none; }
    .copyright-mobile {
        display: block;
        width: 100%;
        text-align: center;
        color: #aaa;
        font-size: 14px;
        font-family: 'Inter', Arial, sans-serif;
        margin: 24px 0 8px 0;
        opacity: 0.93;
    }
}

/* Форма: правая часть */
.form-block {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 48px 32px;
    min-width: 350px;
    position: relative;
}
@media (max-width: 900px) {
    .form-block {
        min-width: 100vw;
        width: 100vw;
        padding: 0 0 32px 0;
        align-items: flex-start;
        justify-content: flex-start;
    }
}


.main-form {
    width: 100%;
    max-width: 380px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 auto;
    margin-top: 110px;
    padding: 0 16px;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .main-form {
        max-width: 100vw;
        margin-top: 110px;
        padding: 0 8px;
    }
}


.form-title {
    color: #181D27;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 38px;
    margin-bottom: 4px;
    text-align: left;
    align-self: flex-start;
}
.form-subtitle {
    color: #535862;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 28px;
    text-align: left;
    align-self: flex-start;
}


.form-fields {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    margin-bottom: 24px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;     /* или 14px, если мелко в макете */
    font-weight: 500;
    color: #181D27;
    margin-bottom: 6px;
}
.required {
    color: #7F56D9;
    font-size: 1em;      /* наследует размер от label */
    font-weight: 500;
    line-height: 1;
}
  .form-group {
    margin-bottom: 20px;
  }
input {
    width: 100%;
    padding: 14px 14px;
    font-size: 16px;
    border: 1px solid #E0E2E7;
    border-radius: 8px;
    margin-top: 4px;
    margin-bottom: 0;
    box-sizing: border-box;
    background: #fff;
    color: #181D27;
    font-family: inherit;
}
select {
    width: 100%;
    padding: 14px 40px 14px 14px; /* больше padding справа! */
    font-size: 16px;
    border: 1px solid #E0E2E7;
    border-radius: 8px;
    margin-top: 4px;
    margin-bottom: 0;
    box-sizing: border-box;
    background: #fff;
    color: #181D27;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* SVG стрелка — можешь заменить на свою, если нужно */
    background-image: url('data:image/svg+xml;utf8,<svg width="16" height="10" xmlns="http://www.w3.org/2000/svg"><path d="M2 2l6 6 6-6" stroke="%23696cff" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center; /* регулируй тут — например, 16px */
    background-size: 16px 10px;
}
input:focus, select:focus {
    border-color: #FF6A4D;
    outline: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #535862;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 24px; /* <= нужный отступ! */
    flex-wrap: wrap;
}
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #FF6A4D;
    margin: 0;
    position: relative;
    top: 0px;
}
.btn-start {
    width: 100%;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    background: #FF6A4D;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 28px;
    margin-top: 0;
    transition: background .2s;
}
.btn-start:hover { background: #ff4a20; }

.row {
    display: flex;
    gap: 20px;
}
.col {
    flex: 1;
}
@media (max-width: 600px) {
    .row { flex-direction: column; gap: 0; }
}

.copyright {
    width: 100%;
    text-align: center;
    color: #535862;
    font-size: 14px;
    margin: 0 0 20px 0;
    font-family: 'Inter', Arial, sans-serif;
    opacity: 0.93;
}
@media (max-width: 900px) {
    .copyright {
        font-size: 12px;
        margin-bottom: 12px;
    }
}

/* --- MOBILE: скрыть блок отзыва, чуть меньше паддинги --- */
@media (max-width: 500px) {
    .main-form { padding: 0 8px; }
    .form-logo { left: 50%; transform: translateX(-50%); }
    .copyright { font-size: 12px; margin-bottom: 12px; }
    .form-block { min-width: 100vw; }
}


/* ----- Страница вопросов DISC: основной layout ----- */
.test-progress-row {
    max-width: 420px;
    margin: 0 auto 32px auto;
    text-align: center;
}
.test-question-count {
    margin-bottom: 8px;
    color: #535862;
    font-size: 16px;
}
.test-progress-bar {
    background: #eee;
    border-radius: 6px;
    height: 10px;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}
.test-progress-fill {
    background: linear-gradient(90deg, #FE634E 0%, #FFA685 100%);
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s;
}
.test-title {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.test-hint {
    margin-bottom: 28px;
    text-align: center;
    color: #888;
    font-size: 16px;
    max-width: 470px;
    margin-left: auto;
    margin-right: auto;
}

.ranking-row {
    display: flex;
    justify-content: center; 
    /* justify-content: flex-start;       Сдвиг всей строки к левому краю */
    gap: 32px;
    margin-bottom: 28px;
    max-width: 860px;                 /* Или под свой макет */
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
}

.ranking-labels {
    display: flex;
    flex-direction: column;

    gap: 16px;
    width: 180px;      /* компактная ширина */
   /* align-items: flex-end; */
}

.test-label {
    padding: 0 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    min-height: 52px;
    display: flex;
    align-items: center;
    background: #f6f6f6; /* базовый цвет для нецветных */
    border: none;
    margin: 0;
    /* Цвета для классов ниже */
}

.rank-me { background: #BEE3BF; }
.rank-likeme { background: #C2E8E5; }
.rank-notlikeme { background: #FFE3AB; }
.rank-nome { background: #FFCEC9; }

.ranking-answers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    
    gap: 16px;
    width: 370px;     /* длиннее и чуть уже, чем было */
    min-width: 170px;
}

.ranking-answer {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(80,50,0,0.04);
    font-size: 16px;
    padding: 0 24px;
    min-height: 52px;
    display: flex;
    align-items: center;
    cursor: grab;
    border: 1px solid #eee transparent;
    transition: box-shadow 0.15s;
}

.ranking-answer:active {
    box-shadow: 0 2px 16px rgba(80,50,0,0.09);
}

/* ---- Адаптив ---- */
@media (max-width: 900px) {
    .ranking-row {
        gap: 14px;
        max-width: 99vw;
        padding: 0 2vw;
    }
    .ranking-labels {
        width: 95px;
        gap: 10px;
    }
    .test-label {
        font-size: 13px;
        padding: 0 10px;
        min-height: 62px;
    }
    .ranking-answers {
        width: 100%;
        min-width: 90px;
        gap: 10px;
    }
    .ranking-answer {
        font-size: 14px;
        padding: 0 7px;
        min-height: 62px;
    }
}

/* Кнопка "Дальше" — цвета как на главной */
.test-content button[type="submit"] {
    width: 220px;
    padding: 14px 0;
    margin: 24px auto 0 auto;
    font-size: 16px;
    font-weight: 600;
    background: #FF6A4D;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(80, 50, 0, 0.04);
    transition: background 0.16s;
    display: block;
}
.test-content button[type="submit"]:hover { background: #ff4a20; }

/* Лого */
.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
    margin-bottom: 24px;
}
.test-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 139px;
    height: 48px;
}

@keyframes fadein { from { opacity: 0; } to { opacity: 0.97; } }

.admin-menu-box {
    background: #fff;
    padding: 40px 32px;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(70,100,140,0.08);
    width: 340px;
}
.admin-menu-box h2 {
    margin-bottom: 36px; font-size: 26px; text-align: center;
    font-weight: 700; color: #2053a3;
}
.admin-menu-list { margin: 0; padding: 0; }
.admin-menu-list a {
    display: block; margin-bottom: 16px; padding: 18px;
    border-radius: 10px; background: #eaf3ff;
    text-align: center; color: #2053a3; text-decoration: none;
    font-size: 19px; font-weight: 500; transition: .13s;
    box-shadow: 0 1px 3px rgba(80,100,140,0.03);
}
.admin-menu-list a:hover {
    background: #428dff; color: #fff; transform: translateY(-2px) scale(1.025);
}
.logout-link {
    display: block; margin-top: 34px; text-align: center;
    color: #b6bbc6; text-decoration: none; font-size: 17px; font-weight: 500;
    transition: color .12s;
}
.logout-link:hover { color: #f34b4b;}

.report-menu-box {
    background: #fff; padding: 40px 32px; border-radius: 16px;
    box-shadow: 0 4px 32px rgba(70,100,140,0.09); max-width: 390px; margin: 48px auto;
}
.report-menu-box h2 { margin-bottom: 32px; color: #2053a3; font-size: 25px; text-align: center; font-weight: 700;}
.report-list a {
    display: block; padding: 16px 0; margin-bottom: 14px;
    border-radius: 8px; background: #eaf3ff; text-align: center; font-size: 17px;
    text-decoration: none; color: #2053a3; font-weight: 500; transition: .13s;
}
.report-list a:hover { background: #428dff; color: #fff;}
.back-link { display: block; text-align:center; margin-top: 22px; color: #9eaac2; text-decoration: none;}
.back-link:hover { color: #2053a3;}

/* редактирование вопросов! */
.admin-content-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(70,100,140,0.09);
    max-width: 800px;
    margin: 48px auto;
    padding: 32px 28px 38px 28px;
}
.admin-content-box h2 {
    margin-bottom: 34px;
    font-size: 26px;
    text-align: center;
    font-weight: 700;
    color: #2053a3;
}
.back-link {
    display: block;
    text-align: center;
    margin: 0 0 30px 0;
    color: #9eaac2;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: color .14s;
}
.back-link:hover { color: #2053a3; }
.q-box {
    background: #f7fafc;
    border-radius: 10px;
    margin-bottom: 32px;
    padding: 18px 20px 18px 20px;
    box-shadow: 0 1px 6px rgba(80,100,140,0.04);
}
.q-title { font-weight: 600; margin-bottom: 10px; font-size: 16px; color: #3a4a66; }
.answers-list input[type=text] {
    width: 62%; margin-bottom: 8px; padding: 8px;
    border-radius: 7px; border: 1px solid #dde6f5;
    font-size: 15px; font-family: inherit;
}
.answers-list input[type=text].trait { width: 32px; }
.save-btn {
    margin-top: 18px;
    background: #3a84ff;
    color: #fff;
    padding: 11px 38px;
    border-radius: 8px;
    border: none;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(50,80,170,0.06);
    transition: background .15s;
}
.save-btn:hover { background: #2053a3; }
.del-btn {
    background: #eee; color: #c40d0d;
    border: none; border-radius: 6px; padding: 5px 13px; margin-left: 14px;
    font-size: 16px; font-weight: 500;
}
.add-btn {
    background: #5bbc5b; color: #fff; border: none; border-radius: 7px;
    padding: 6px 17px; margin: 12px 0 0 0; font-size: 15px; font-weight: 500;
}
.del-question-btn {
    background: #ff5757; color: #fff; border: none; border-radius: 7px;
    padding: 7px 18px; float: right; font-size: 14px;
}
.new-q-form {
    margin-bottom: 38px; padding: 16px 20px; background: #eaf3ff; border-radius: 10px;
}
.popup-message {
    display:none; position:fixed; top:48%; left:50%;
    transform:translate(-50%,-50%);
    background:#fff; padding:24px 40px; border-radius:16px;
    box-shadow:0 4px 28px #0002; z-index:99; font-size:20px; color:#398e3c;
}
@media (max-width: 700px) {
    .admin-content-box { padding: 12px 2vw 24px 2vw; }
    .q-box, .new-q-form { padding: 8px 2vw; }
    .back-link { margin-bottom: 18px; }
}

.form-privacy-link {
    color: #8c98b6;
    text-decoration: none;
    border-bottom: 1px dashed #8c98b6;
    transition: color 0.2s, border-bottom 0.2s;
}
.form-privacy-link:hover {
    color: #2053a3;
    border-bottom: 1px solid #2053a3;
}