.home-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 0 28px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 18px;
}

.home-hero-main {
    padding: 28px 30px;
    border: 1px solid #dbe5f0;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(79, 159, 243, 0.16), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 30px rgba(26, 84, 174, 0.08);
}

.home-hero-side {
    display: flex;
}

.home-stat-card {
    width: 100%;
    padding: 24px 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1f4f91 0%, #3a89e0 100%);
    color: #fff;
    box-shadow: 0 18px 34px rgba(31, 79, 145, 0.22);
}

.home-stat-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
}

.home-stat-value {
    margin-top: 12px;
    font-size: 52px;
    line-height: 1;
    font-weight: 700;
}

.home-stat-note {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.92;
}

.home-workspace-card {
    overflow: hidden;
}

.home-workspace-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
    padding-bottom: 18px;
}

.home-workspace-copy h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.15;
}

.home-workspace-copy p {
    margin: 0;
    max-width: 58ch;
    color: #5a6778;
    line-height: 1.6;
}

.home-eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3a89e0;
}

.home-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 3.6vw, 3.15rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #142033;
}

.home-subtitle {
    margin: 0;
    max-width: 62ch;
    font-size: 16px;
    line-height: 1.6;
    color: #556274;
}

.home-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-actions {
    display: flex;
    justify-content: flex-start;
    flex-shrink: 0;
    margin-top: 12px;
    margin-bottom: 4px;
}

.home-form-card {
    max-width: 720px;
    padding: 22px;
    border: 1px solid #e1e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.home-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.home-selection-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.home-panel label {
    font-weight: 600;
    color: #233142;
    margin-top: 0;
}

.home-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.home-helper-text {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7787;
}

.home-empty-state {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 4px 6px;
}

.home-empty-state h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.home-empty-state p {
    margin: 0;
    color: #5f6c7c;
    line-height: 1.6;
}

.home-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #3a89e0;
    font-size: 24px;
    box-shadow: inset 0 0 0 1px rgba(58, 137, 224, 0.12);
}

.survey-select {
    width: min(100%, 360px);
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #cfd9e6;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    flex: 1 1 320px;
}

.survey-select:focus-visible {
    outline: 3px solid rgba(58, 137, 224, 0.16);
    outline-offset: 2px;
    border-color: #8fb8ef;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    font-size: 14px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 10px;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.primary-button {
    border: 1px solid #3a89e0;
    background: linear-gradient(135deg, #4f9ff3 0%, #3a89e0 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(58, 137, 224, 0.18);
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(58, 137, 224, 0.24);
}

.secondary-button {
    border: 1px solid #c8d5e6;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
    color: #1f2d3d;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.secondary-button:hover {
    background: #eef5ff;
    border-color: #b8cdea;
    transform: translateY(-1px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible {
    outline: 3px solid rgba(58, 137, 224, 0.18);
    outline-offset: 2px;
}

.primary-button:disabled,
.secondary-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    min-width: 1rem;
}

.button-icon svg {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}

.page-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.survey-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
}

.survey-page-main {
    min-width: 0;
}

.survey-content-card {
    border: 1px solid #d8e4f4;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(26, 84, 174, 0.08);
}

.survey-content-card-header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid #dde5ef;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.survey-content-card-header h1 {
    margin: 0 0 8px;
}

.survey-content-card-body {
    padding: 20px 24px 24px;
}

.survey-page-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.survey-page-sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
}

.quote-card {
    border: 1px solid #d8e4f4;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(26, 84, 174, 0.08);
}

.quote-card-header {
    background: linear-gradient(135deg, #4f9ff3 0%, #3a89e0 100%);
    color: #fff;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
}

.quote-card-body {
    padding: 16px 18px 18px;
}

.quote-card-section {
    padding: 10px 0 16px;
    border-bottom: 1px solid #dde5ef;
}

.quote-card-section:last-child {
    border-bottom: none;
}

.quote-card-label {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 14px;
}

.quote-card-price {
    font-size: 44px;
    line-height: 1;
    color: #000;
    margin-bottom: 14px;
}

.quote-card-warning {
    margin-bottom: 14px;
    color: #dc3545;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.quote-card-action {
    display: flex;
    justify-content: flex-end;
}

.quote-card-button,
.quote-card-footer-button {
    border: 1px solid #000;
    background: #fff;
    color: #000;
    border-radius: 6px;
    padding: 9px 14px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.quote-card-button:hover,
.quote-card-footer-button:hover {
    background: #d9e8fb;
    color: #000;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.quote-card-button:focus-visible,
.quote-card-footer-button:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.18);
    outline-offset: 2px;
}

.quote-card-button:active,
.quote-card-footer-button:active {
    transform: translateY(0);
}

.quote-card-included-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
}

.quote-card-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
}

.quote-card-footer-button {
    width: 100%;
}

.action-modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 30, 66, 0.45);
    z-index: 1000;
}

.action-modal {
    width: min(100%, 440px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(9, 30, 66, 0.24);
    overflow: hidden;
}

.action-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #4f9ff3 0%, #3a89e0 100%);
    color: #fff;
}

.action-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: inherit;
}

.action-modal-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.action-modal-body {
    min-height: 120px;
    padding: 20px;
}

.action-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 20px;
}

.upload-modal-description {
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.5;
    color: #44546a;
}

.upload-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.upload-message {
    margin-top: 14px;
    margin-bottom: 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.upload-message.success {
    background: #edf8f0;
    color: #1f6f43;
    border: 1px solid #b7dfc3;
}

.upload-message.error {
    background: #fff3f2;
    color: #b42318;
    border: 1px solid #f3b5b0;
}

.survey-module {
    margin-bottom: 8px;
    padding: 16px;
    background: #f6f9fc;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
}

.survey-module-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.survey-module-header-main {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.survey-module-icon,
.survey-module-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 22px;
}

.survey-module-toggle {
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    border-width: 2px;
}

.survey-module-toggle:hover {
    background: #f3fefe;
}

.survey-module-toggle:focus-visible {
    outline: 2px solid #1e6f70;
    outline-offset: 2px;
}

.survey-module-toggle-symbol {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

.survey-module-icon.standard,
.survey-module-toggle.standard {
    border: 2px solid #39c7c9;
    color: #39c7c9;
}

.survey-module-icon.success,
.survey-module-toggle.success {
    border: 2px solid #2e7d32;
    color: #2e7d32;
}

.survey-module-icon.danger,
.survey-module-toggle.danger {
    border: 2px solid #ef5350;
    color: #ef5350;
}

.survey-module-title-wrapper {
    flex: 1;
}

.survey-module-title {
    flex: 1;
    min-width: 0;
    font-size: 28px;
    line-height: 1.2;
}

.survey-module-header hr {
    margin: 0;
}

.survey-section {
    margin-left: 58px;
    margin-bottom: 18px;
}

.survey-section-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.survey-section-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.survey-question {
    margin-bottom: 14px;
}

.disabled-question {
    opacity: 0.6;
}

.disabled-question .survey-question-label {
    color: #777;
}

.survey-question-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.highlighted-input {
    border: 1px solid #ef5350;
}

.price-workflow-input {
    border-width: 1px;
    border-style: solid;
}

.completed-price-input {
    border-color: #000;
}

.highlighted-box {
    border: 1px solid #ef5350;
    padding: 12px;
    background: #fff;
}

.price-workflow-box {
    border-width: 1px;
    border-style: solid;
    padding: 12px;
    background: #fff;
}

.completed-price-box {
    border-color: #000;
}

.textarea-resizable {
    resize: both;
}

.textarea-fixed {
    resize: none;
}

.radio-group,
.yesno-group {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.radio-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.summary-table {
    border-collapse: collapse;
    width: 100%;
}

.summary-table th,
.summary-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}


.validation-error {
    margin-top: 6px;
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 600;
}


.invalid-input {
    border: 1px solid #dc3545;
}

.invalid-input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.invalid-box {
    border: 1px solid #dc3545;
    padding: 12px;
    background: #fff5f5;
    border-radius: 4px;
}

@media (max-width: 820px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-main,
    .home-stat-card,
    .home-form-card {
        padding: 22px 20px;
    }

    .home-workspace-header {
        flex-direction: column;
        align-items: stretch;
    }

    .home-selection-row {
        align-items: stretch;
    }

    .survey-select,
    .home-row {
        flex-basis: 100%;
    }

    .home-actions {
        margin-top: 0;
        margin-bottom: 0;
    }

    .survey-page-layout {
        grid-template-columns: 1fr;
    }

    .survey-page-sidebar {
        position: static;
    }
}
