@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

body {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

main section#services-individuals {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0 auto 48px auto;
    max-width: 600px;
    text-align: center;
}

main section#services-individuals h2 {
    text-align: center;
    color: #8a1e1e;
    margin-bottom: 24px;
}

main section#services-individuals ul {
    list-style: disc inside;
    padding-left: 0;
    color: #9d6f00;
    font-size: 1.25em;
    display: inline-block;
    text-align: left;
}

main section#services-individuals li {
    margin-bottom: 8px;
    padding-left: 4px;
}
main section#form-section {
    background: none;
    border-left: none;
    box-shadow: none;
    padding: 0;
    border: 2px solid #EEBD81;
    border-radius: 12px;
    margin: 0 auto 48px auto;
    max-width: 600px;
}

main section#form-section h2 {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 24px;
    color: #9d6f00;
}

.consult-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(238,189,129,0.08);
    padding: 32px 24px;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.consult-form label {
    font-weight: 500;
    color: #9d6f00;
}

.consult-form input,
.consult-form textarea {
    border: 1px solid #9d6f00;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 1em;
    font-family: inherit;
    background: #fffbe9;
    transition: border 0.2s;
    margin-bottom: 16px;
}

.consult-form input:focus,
.consult-form textarea:focus {
    outline: none;
    border-color: #b89c2c;
}

.consult-form textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    max-width: 100%;
    min-width: 0;
    min-height: 7.5em;
}

#desc {
    max-height: calc(1.5em * 25);
    overflow-y: auto;
    resize: vertical;
}

.consult-btn {
    background: #ccc;
    color: #666;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: not-allowed;
    transition: background 0.2s, color 0.2s;
    align-self: flex;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    opacity: 0.6;
}

.consult-btn:not(.disabled):hover {
    background: #ffe282;
    color: #000000;
}

@media (max-width: 700px) {
    .consult-form {
        padding: 33px 30px 60px;
        max-width: 100%;
    }
    .consult-btn {
        width: 100%;
        align-self: stretch;
    }
}

#scrollTopBtn {
    display: none;
    position: fixed;
    right: calc(50vw - 700px + 24px); /* 1400px/2=700px, 24px паддинг main */
    bottom: 80px;
    z-index: 3000;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: #EEBD81;
    color: #222;
    font-size: 2.6em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    opacity: 0.85;
}
#scrollTopBtn:hover {
    background: #ffe282;
    color: #9d6f00;
    opacity: 1;
}
@media (max-width: 700px) {
    #scrollTopBtn {
        right: 12px;
        bottom: 40px;
        width: 44px;
        height: 44px;
        font-size: 1.8em;
    }
}
@media (max-width: 1400px) {
    #scrollTopBtn {
        right: 24px;
    }
}

.popup-success {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}
.popup-success-content {
    background: #fffbe9;
    color: #222;
    border-radius: 12px;
    padding: 32px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    text-align: center;
    position: relative;
    min-width: 240px;
}
.popup-success-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2em;
    color: #9d6f00;
    cursor: pointer;
    line-height: 1;
}
.popup-success-close:hover {
    color: #222;
}

.form-agreement {
    font-size: 0.95em;
    color: #888;
    margin-top: 12px;
    text-align: center;
}

/* Стили для кастомной галочки */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95em;
    color: #9d6f00;
    line-height: 1.4;
    margin-bottom: 16px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #9d6f00;
    border-radius: 4px;
    background: #fffbe9;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #9d6f00;
    border-color: #9d6f00;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label:hover .checkmark {
    border-color: #b89c2c;
    background: #fff;
}

.checkbox-label input[type="checkbox"]:checked:hover + .checkmark {
    background: #b89c2c;
    border-color: #b89c2c;
}

/* Стили для валидации полей */
.consult-form input.invalid,
.consult-form textarea.invalid {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.consult-form input.valid,
.consult-form textarea.valid {
    border-color: #51cf66;
    background: #f8fff9;
}

/* Стили для активной кнопки (когда все поля заполнены) */
.consult-btn:not(.disabled):not(:disabled) {
    background: #EEBD81;
    color: #ffffff;
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.consult-btn:not(.disabled):not(:disabled):hover {
    background: #ffe282;
    color: #000000;
    opacity: 1;
}

/* Стили для неактивной кнопки */
.consult-btn.disabled,
.consult-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.consult-btn.disabled:hover,
.consult-btn:disabled:hover {
    background: #ccc;
    color: #666;
    opacity: 0.6;
}