:root {
    --form-primary: #1F1F1F;
    --form-accent: #3AD35C;
    --form-border: #E0E0E0;
    --form-text: #1F1F1F;
    --form-background: #FFFFFF;
    --form-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --form-gray-bg: #F8F9FA;
    --form-gray-text: #6C757D;
    --form-error: #E53E3E;
    --form-success: #3AD35C;
}

/* Общий стиль для всех ссылок на странице */
.form-container a:hover {
    color: #666666 !important;
}

.form-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0;
    background: transparent;
}

.breadcrumb-container {
    margin-bottom: 32px;
    display: flex;
    justify-content: flex-start;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    width: 100%;
    align-items: start;
}

@media (max-width: 992px) {
    .main-content {
        display: flex;
        flex-direction: column;
    }

    .content-left {
        order: 1;
    }

    .content-right {
        order: 2;
    }
}

.content-left {
    width: 100%;
}

.content-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-left {
    display: flex;
    flex-direction: column;
}

.content-left .section-description {
    margin-bottom: 32px;
}

/* Выравнивание бокового блока с началом формы (первой form-section) */
.content-right {
    /*padding-top: calc(32px + 1.6em + 32px); !* section-description margin-bottom + высота текста + form-section margin *!*/
}

@media (max-width: 992px) {
    .content-right {
        padding-top: 0;
    }
}

.page-header {
    margin-bottom: 32px;
    text-align: left;
    grid-column: 1 / -1;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--form-text);
    margin: 0 0 24px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.section-header {
    margin-bottom: 32px;
    text-align: left;
}

.city-selector {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--form-gray-bg);
    border-radius: 8px;
    border: 1px solid var(--form-border);
}

.city-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--form-text);
}

.city-select {
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: var(--form-text);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.city-select:hover {
    background: #F0F0F0;
}

.city-select:focus {
    outline: 2px solid var(--form-primary);
    outline-offset: 2px;
}

.section-description {
    color: var(--form-gray-text);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 48px;
    text-align: left;
}

.subtitle {
    font-size: 28px;
    font-weight: 700;
    color: var(--form-text);
    margin: 0 0 24px 0;
    line-height: 1.3;
}

.form-section .subtitle {
    margin-bottom: 20px;
}

.form-section .city-selector {
    margin-bottom: 32px;
}

/* Sidebar blocks */
.sidebar-block {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--form-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-block-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--form-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-block-title i {
    color: var(--form-primary);
    font-size: 20px;
}

.sidebar-block-title h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--form-text);
    margin: 0;
    line-height: 1.3;
}

.sidebar-block-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--form-text);
}

.sidebar-block-content p {
    margin: 0 0 12px 0;
}

.sidebar-block-content p:last-child {
    margin-bottom: 0;
}

.sidebar-block-important {
    background: var(--form-gray-bg);
    /*border-left: 4px solid var(--form-primary);*/
}

.sidebar-block-important .sidebar-block-title {
    color: var(--form-text);
}

.sidebar-block-important .sidebar-block-title i {
    color: var(--form-primary);
}

.sidebar-block-links {
    background: var(--form-gray-bg);
}

.sidebar-block-important-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-block-important-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-block-important-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--form-text);
}

.sidebar-block-important-list li:last-child {
    margin-bottom: 0;
}

.sidebar-block-important-item-image {
    width: 75px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-block-important-item-text {
    flex: 1;
    padding-top: 4px;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 16px;
}

.sidebar-links li:last-child {
    margin-bottom: 0;
}

.sidebar-links a {
    color: var(--form-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.sidebar-links a:hover {
    color: #666666;
}

.sidebar-links-image {
    width: 100px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-links-text {
    flex: 1;
    line-height: 1.5;
}

.sidebar-links-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--form-border);
    text-align: center;
}

.sidebar-view-all-link {
    color: var(--form-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.sidebar-view-all-link:hover {
    color: #666666;
    text-decoration: underline;
}

.sidebar-view-all-link::after {
    content: '→';
    font-size: 16px;
}

.form-section {
    background: white;
    margin-bottom: 24px;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--form-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-title2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--form-text);
    margin-bottom: 24px;
    margin-top: 0;
    text-align: left;
    padding-top: 32px;
    padding-bottom: 12px;
    border-top: 1px solid var(--form-border);
    border-bottom: 2px solid var(--form-gray-bg);
}

.section-title2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--form-text);
    margin-bottom: 8px;
    text-align: left;
}

.form-input {
    border: 1px solid var(--form-border);
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    font-size: 16px;
    background: white;
    transition: all 0.2s ease;
    font-weight: 400;
    color: var(--form-text);
}

.form-input:hover {
    border-color: #B0B0B0;
}

.form-input:focus {
    border-color: var(--form-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 31, 31, 0.1);
}

.form-input::placeholder {
    color: var(--form-gray-text);
    font-weight: 400;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    justify-content: flex-start;
    width: 100%;
    background: var(--form-gray-bg);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 60px;
}

.checkbox-item:hover {
    background: #E9ECEF;
    border-color: var(--form-border);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkbox-item:has(.checkbox-input:checked) {
    background: #E3F2FD;
    border-color: var(--form-primary);
    box-shadow: 0 2px 8px rgba(31, 31, 31, 0.15);
}

/* Альтернативный способ для браузеров без поддержки :has() */
.checkbox-input:checked + .checkbox-label {
    color: var(--form-primary);
    font-weight: 600;
}

.checkbox-input {
    width: 24px;
    height: 24px;
    border: 2px solid var(--form-border);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-input:hover {
    border-color: var(--form-primary);
    transform: scale(1.1);
}

.checkbox-input:checked {
    background-color: var(--form-primary);
    border-color: var(--form-primary);
}

.checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 16px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--form-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    line-height: 1.4;
    user-select: none;
}

.price-tag {
    background: linear-gradient(135deg, #3182CE, #2B6CB0);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.3);
    flex-shrink: 0;
}

.checkbox-item:nth-child(8) .price-tag {
    background: linear-gradient(135deg, #718096, #4A5568);
    font-size: 11px;
    padding: 4px 6px;
    white-space: normal;
    line-height: 1.2;
    min-width: 120px;
    text-align: center;
}

.dimensions-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
    width: 100%;
}

.dimension-input {
    border: 1px solid var(--form-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    background-color: white;
    transition: all 0.2s ease;
}

.dimension-input:focus {
    border-color: var(--form-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(31, 31, 31, 0.1);
    background-color: white;
}

.dimension-input::placeholder {
    color: #767680;
}

.file-upload-container {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--form-gray-bg);
    border: 2px dashed var(--form-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--form-text);
    transition: all 0.2s ease;
}

.file-upload-btn:hover {
    background-color: #E9ECEF;
    border-color: var(--form-primary);
    border-style: solid;
}

.file-upload-input {
    display: none;
}

.upload-info {
    margin-top: 12px;
    font-size: 13px;
    color: var(--form-gray-text);
    text-align: left;
}

.elevator-options {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
    flex-direction: row;
}

.elevator-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--form-gray-bg);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 1;
    min-width: 140px;
    justify-content: flex-start;
}

.elevator-option:hover {
    background: #E9ECEF;
    border-color: var(--form-border);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.elevator-option:has(.checkbox-input:checked) {
    background: #E3F2FD;
    border-color: var(--form-primary);
    box-shadow: 0 2px 8px rgba(31, 31, 31, 0.15);
}

.elevator-option .checkbox-input:checked + .checkbox-label {
    color: var(--form-primary);
    font-weight: 600;
}

.form-textarea {
    border: 1px solid var(--form-border);
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    font-size: 16px;
    background-color: white;
    transition: all 0.2s ease;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-textarea:focus {
    border-color: var(--form-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(31, 31, 31, 0.1);
    background-color: white;
}

.price-section {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding: 24px;
    background: var(--form-gray-bg);
    border-radius: 12px;
    border: 1px solid var(--form-border);
}

.price-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--form-text);
}

.price-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--form-primary);
}

.price-amount--pending {
    font-size: 20px;
    line-height: 1.4;
}

.submit-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 32px;
    gap: 16px;
}

.btn-submit {
    background: var(--form-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(31, 31, 31, 0.2);
}

.btn-submit:hover {
    background: #2D2D2D;
    box-shadow: 0 4px 12px rgba(31, 31, 31, 0.3);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(31, 31, 31, 0.2);
}

.form-footer {
    margin-top: 32px;
    text-align: center;
    color: var(--form-gray-text);
    font-size: 13px;
    line-height: 1.6;
    padding: 16px;
    background: var(--form-gray-bg);
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Success message styling */
.form-success {
    background-color: rgba(58, 211, 92, 0.1) !important;
    border-left: 5px solid var(--form-primary) !important;
    padding-left: 25px !important;
}

.form-success .form-question {
    font-weight: 500;
    color: #155724;
    font-size: 16px;
}

/* File preview styles */
.file-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.file-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
}

.file-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-remove-btn {
    border: 0;
    padding: 0;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(229, 62, 62, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.file-remove-btn:hover {
    background: rgba(229, 62, 62, 1);
    transform: scale(1.1);
}

.error-message {
    animation: fadeIn 0.3s ease-in-out;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (max-width: 992px) {
    .form-container {
        padding: 0 16px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .content-right {
        order: -1;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .form-section {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        display: flex;
        flex-direction: column;
    }

    .content-left {
        order: 1;
    }

    .content-right {
        order: 2;
    }

    .sidebar-block-important-list li {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .sidebar-block-important-item-image {
        width: 50px;
        height: 48px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .sidebar-links-image {
        width: 80px;
        height: 56px;
    }
}
.form-container {
    padding: 0 12px;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.section-description {
    padding: 16px;
    font-size: 15px;
    margin-bottom: 32px;
}

.form-section .subtitle {
    font-size: 24px;
}

.form-section .city-selector {
    margin-bottom: 24px;
}

.sidebar-block-title h3 {
    font-size: 18px;
}

.form-section {
    padding: 20px;
    margin-bottom: 20px;
}

.section-title2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-item {
    padding: 14px;
    min-height: 56px;
}

.dimensions-container {
    grid-template-columns: 1fr;
}

.elevator-options {
    flex-direction: row;
    gap: 12px;
}

.elevator-option {
    flex: 1;
    min-width: auto;
    padding: 10px 12px;
}

.submit-section {
    flex-direction: column;
    align-items: stretch;
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

.price-section {
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.price-amount {
    font-size: 28px;
}

.file-preview-item {
    width: 80px;
    height: 80px;
}


@media (max-width: 576px) {
    .breadcrumb-container {
        margin-bottom: 24px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .section-description {
        font-size: 14px;
        padding: 12px;
        margin-bottom: 24px;
    }

    .form-section .subtitle {
        font-size: 22px;
    }

    .form-section .city-selector {
        margin-bottom: 20px;
    }

    .sidebar-block-title h3 {
        font-size: 18px;
    }

    .form-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .section-title2 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-input, .form-textarea, .dimension-input {
        padding: 10px 14px;
        font-size: 15px;
    }

    .checkbox-label {
        font-size: 14px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .checkbox-item {
        padding: 12px;
        min-height: 50px;
    }

    .elevator-options {
        flex-direction: column;
        gap: 10px;
    }

    .elevator-option {
        width: 100%;
        min-width: auto;
        padding: 12px 14px;
    }

    .price-section {
        padding: 16px;
    }

    .price-label {
        font-size: 16px;
    }

    .price-amount {
        font-size: 24px;
    }

    .btn-submit {
        padding: 12px 24px;
        font-size: 15px;
    }

    .form-footer {
        font-size: 12px;
        padding: 12px;
        margin-top: 24px;
    }

    .upload-info {
        font-size: 12px;
    }

    .file-preview-item {
        width: 70px;
        height: 70px;
    }

    .sidebar-block {
        padding: 16px;
    }

    .sidebar-block-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .sidebar-block-content {
        font-size: 13px;
    }

    .sidebar-block-important-list li {
        flex-direction: column;
        gap: 8px;
    }

    .sidebar-block-important-item-image {
        width: 50px;
        height: 48px;
        object-fit: cover;
    }

    .sidebar-block-important-list li {
        flex-direction: row;
        align-items: flex-start;
    }

    .sidebar-links-image {
        width: 70px;
        height: 48px;
    }
}

.form-container .rf-success-alert {
    margin: 20px 0;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 16px rgba(58, 211, 92, 0.2);
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

.form-container .rf-success-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-container .rf-success-icon {
    color: #155724;
    font-size: 20px;
}

.form-container .rf-success-body {
    flex: 1;
}

.form-container .rf-success-title {
    color: #155724;
    font-size: 16px;
}

.form-container .rf-success-message {
    color: #155724;
    font-size: 15px;
    margin-top: 4px;
}

.form-container .rf-success-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #155724;
    cursor: pointer;
}

.form-container .rf-required {
    color: #E53E3E;
}

.form-container .rf-photo-group {
    margin-top: 32px;
}

.form-container .rf-dismantling {
    max-width: 300px;
}

.form-container .dimensions-group {
    display: none;
}

.form-container .dimensions-group.is-visible {
    display: flex;
}

.form-container .volume-result {
    margin-top: 10px;
    font-size: 14px;
    color: #3182CE;
    font-weight: 500;
    display: none;
}

.form-container .volume-result.is-visible {
    display: block;
}

.form-container .price-amount.is-pulsing {
    transform: scale(1.1);
}

.form-container .rf-input-shake {
    animation: shake 0.5s ease-in-out;
}

.form-container .form-input.rf-input-error,
.form-container .dimension-input.rf-input-error {
    border-color: #E53E3E;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-container .error-message {
    color: #E53E3E;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #FED7D7;
    border: 1px solid #FEB2B2;
    border-radius: 6px;
    animation: fadeIn 0.3s ease-in-out;
}

.form-container .section-error-message {
    color: #E53E3E;
    font-size: 14px;
    margin-top: 15px;
    padding: 12px 16px;
    background-color: #FED7D7;
    border: 1px solid #FEB2B2;
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in-out;
    text-align: center;
    font-weight: 500;
}
