body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: #f2f2f2;
}

.main-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    min-height: 100vh;
}

.home-panel {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-panel label {
    font-weight: 600;
}

.home-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.survey-select {
    width: 260px;
    box-sizing: border-box;
    padding: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    font-size: 14px;
}

.primary-button,
.secondary-button {
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.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;
}

.survey-module {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f8f8;
    border-top: 1px solid #ddd;
}

.survey-module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.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;
    line-height: 1;
    flex-shrink: 0;
}

.survey-module-toggle:hover {
    background: #f3fefe;
}

.survey-module-toggle:focus-visible {
    outline: 2px solid #1e6f70;
    outline-offset: 2px;
}

.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 {
    font-size: 28px;
    margin-bottom: 8px;
}

.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) {
    .survey-page-layout {
        grid-template-columns: 1fr;
    }

    .survey-page-sidebar {
        position: static;
    }
}
