:root {
    --primary: #0080A9;
    --primary-hover: #00759A;
    --dark: #0080A9;
    --bg-chat: #F5F7F9;
    --bg-option: #d4e8ee;
    --border-option: #8aa5ad;
    --text-main: #3B3838;
    --text-white: #FFFFFF;
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --btn-secondary-bg: #a57a3d62;
    --btn-secondary-hover: #C0965C;
    --btn-secondary-text: #000000;
    --btn-dark-bg: #f3e4cf;
    --btn-dark-hover: #ceab7a;
    --btn-dark-text: #000000;
    --gold-glow: rgba(104, 95, 58, 0.438);
    --btn-rating-bg: #e8e8e8;
    --btn-rating-hover: #C0965C;
    --btn-rating-text: #000000;
    --btn-gray-bg: #6c757d;
    --btn-gray-hover: #343a40;
    --btn-gray-text: #FFFFFF;
    --star-gold: #ffd90098;
    --star-light-gold: #ffe45cbe;
    --star-gray: #999999;
    --star-light-gray: #D3D3D3;
}

/* Эти параметры и так задаются в базовых стилях сайта. */
/*html, body {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    -webkit-text-size-adjust: 100%;*/
/*}*/

.bot-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 90px;
    height: 90px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    z-index: 2147483646;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease-out, background 0.25s ease-out;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.bot-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background-color: var(--primary);
    z-index: -1;
    animation: pulseOutward 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.bot-toggle-btn:hover {
    transform: scale(1.05);
    background: var(--primary-hover);
}

.bot-toggle-btn:active { transform: scale(0.97); }

.bot-toggle-btn svg {
    width: 42px;
    height: 42px;
    fill: var(--text-white);
}

body.chat-open .bot-toggle-btn::before {
    opacity: 0;
    transform: scale(1) !important;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    animation: none;
}

@keyframes pulseOutward {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}


.feedback-btn-wrapper {
    position: absolute;
    bottom: 100%;
    right: 16px;
    margin-bottom: 8px;
    z-index: 50;
}

.feedback-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.35;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feedback-btn:hover {
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 128, 169, 0.25);
    transform: scale(1.05);
}

.feedback-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.feedback-btn:hover svg {
    stroke: var(--primary-hover);
}


.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2147483650;
    opacity: 0;
    transition: opacity 0.25s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.feedback-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.feedback-modal-overlay.active {
    opacity: 1;
}

.feedback-modal-overlay.active .feedback-modal {
    transform: scale(1) translateY(0);
}

.feedback-modal-header {
    background: var(--dark);
    color: var(--text-white);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.feedback-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.feedback-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}

.feedback-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.feedback-modal-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feedback-modal-body {
    padding: 24px;
}

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

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

.feedback-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.2s;
    box-sizing: border-box;
    background: #ffffff;
    color: var(--text-main);
    min-height: 100px;
    resize: vertical;
}

.feedback-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 128, 169, 0.1);
}

.feedback-form-group textarea.filled,
.custom-select-trigger.filled,
#feedbackCaptcha.filled {
    background-color: #f0f7ff;
}

.custom-select {
    position: relative;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    user-select: none;
}

.custom-select-trigger {
    padding: 12px;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.2s;
    min-height: 46px;
    box-sizing: border-box;
    position: relative;
}

.custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #333;;
    border-bottom: 2px solid #333;;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.25s ease;
}

.custom-select.open .custom-select-trigger::after {
    transform: translateY(-35%) rotate(-135deg);
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
    border-color: var(--primary);
}

.custom-select.open .custom-select-trigger {
    box-shadow: 0 0 0 3px rgba(0, 128, 169, 0.1);
}

.custom-select-trigger .placeholder {
    color: #9aa5ad;
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 2px;
    background: white;
    border: 1px solid #ddd;          /* тонкая серая рамка, как в консультациях */
    border-top: none;
    border-radius: 0 0 6px 6px;      /* скругление только снизу — список «пристыкован» */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    z-index: 100;
}

.custom-select.open .custom-select-options {
    max-height: 300px;
    overflow-y: auto;
    opacity: 1;
}

.custom-select-option {
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;   /* тонкие разделители, как в консультациях */
    transition: background-color 0.15s;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: #f0f7ff;                /* тот же hover, что в консультациях */
}

.custom-select-option.selected {
    background: #f0f7ff;
    color: #0080A9;
    font-weight: 600;
}

.custom-select-options::-webkit-scrollbar { width: 6px; }
.custom-select-options::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.feedback-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.feedback-submit-btn:hover {
    background: var(--primary-hover);
}

.feedback-submit-btn:active {
    transform: scale(0.98);
}

.feedback-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}


.qc-close-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.chat-window {
    position: fixed;
    bottom: 95px;
    right: 20px;
    width: 460px;
    max-width: calc(100vw - 40px);
    height: 720px;
    max-height: calc(100vh - 130px);
    background: var(--text-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 2147483647;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-window.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: var(--dark);
    color: var(--text-white);
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    box-sizing: border-box;
    contain: layout style;
}
.chat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.quick-consult-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.quick-consult-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #2FA9B2;
    border: 2px solid #FFFFFF;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    color: #FFFFFF;
    position: relative;
    overflow: visible;
    transition: background 0.25s ease-out;
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 8px 1px rgba(255, 255, 255, 0.25);
    }
    50% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 24px 5px rgba(255, 255, 255, 0.65);
    }
}

.quick-consult-btn::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(47, 169, 178, 0.7), rgba(120, 210, 218, 0.5));
    z-index: -1;
    animation: borderGlow 2.5s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.35; filter: blur(4px); }
    50% { opacity: 1; filter: blur(12px); }
}

.quick-consult-btn::after {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 30px;
    background: radial-gradient(ellipse at center,
    rgba(255,255,255,0.55) 0%,
    rgba(47, 169, 178, 0.35) 40%,
    transparent 70%);
    z-index: -2;
    animation: outerGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes outerGlow {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

.quick-consult-btn:hover {
    background: #278E96;
}

.quick-consult-btn:active {
    background: #1F757C;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.quick-consult-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% {
        opacity: 0.9;
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.95))
        drop-shadow(0 0 24px rgba(47, 169, 178, 0.75));
    }
}

.quick-consult-btn span {
    animation: textGlow 2s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    line-height: 1;
}

@keyframes textGlow {
    0%, 100% {
        opacity: 0.95;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 18px rgba(255, 255, 255, 0.95),
        0 0 30px rgba(47, 169, 178, 0.7);
    }
}

.chat-close {
    cursor: pointer;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text-white);
    opacity: 0.8;
    transition: opacity 0.2s ease-out;
    padding: 4px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-close:hover { opacity: 1; }

.chat-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.chat-messages {
    flex: 1 1 auto;
    min-height: 100px;
    padding: 16px 18px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-chat);
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    position: relative;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.message {
    max-width: 90%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    animation: msgSlideIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    word-wrap: break-word;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.message.bot {
    background: var(--text-white);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.message.user {
    background: var(--primary);
    color: var(--text-white);
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 128, 169, 0.3);
}

@keyframes msgSlideIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.chat-bottom-area {
    position: relative;
    flex-shrink: 0;
    max-height: 65%;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.chat-options {
    padding: 14px 18px;
    background: var(--text-white);
    border-top: 1px solid #eef2f5;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 0;
    align-items: center;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}
.chat-options::-webkit-scrollbar { width: 4px; }
.chat-options::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.option-btn {
    background: var(--bg-option);
    border: 1px solid var(--border-option);
    padding: 11px 16px;
    border-radius: 22px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out, transform 0.15s ease-out, box-shadow 0.2s ease-out;
    color: var(--text-main);
    animation: btnSlideIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    text-align: center;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
}
.option-btn:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 128, 169, 0.25);
}
.option-btn:active { transform: scale(0.97); }

@keyframes btnSlideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-btn-secondary {
    background: var(--btn-secondary-bg) !important;
    border: 1px solid #718096 !important;
    color: var(--btn-secondary-text) !important;
    font-weight: 600 !important;
}
.option-btn-secondary:hover {
    background: var(--btn-secondary-hover) !important;
    border-color: var(--btn-secondary-hover) !important;
    color: #2D3748 !important;
}

.option-btn-outline {
    background: var(--btn-dark-bg) !important;
    border: 2px solid #2D3748 !important;
    color: var(--btn-dark-text) !important;
    font-weight: 600 !important;
}
.option-btn-outline:hover {
    background: var(--btn-dark-hover) !important;
    border-color: var(--btn-dark-hover) !important;
    color: #2D3748 !important;
}

.option-btn-rating {
    background: var(--btn-rating-bg) !important;
    border: 1px solid #999999 !important;
    color: var(--btn-rating-text) !important;
    font-weight: 600 !important;
}
.option-btn-rating:hover {
    background: var(--btn-rating-hover) !important;
    border-color: var(--btn-rating-hover) !important;
    color: #333333 !important;
}

.option-btn-gray {
    background: var(--btn-gray-bg) !important;
    border: 1px solid var(--btn-gray-bg) !important;
    color: var(--btn-gray-text) !important;
    font-weight: 600 !important;
}
.option-btn-gray:hover {
    background: var(--btn-gray-hover) !important;
    border-color: var(--btn-gray-hover) !important;
    color: var(--btn-gray-text) !important;
}

.option-btn-external {
    background: rgba(0, 168, 150, 0.1) !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 11px 18px !important;
    transition: all 0.2s ease-out;
    cursor: pointer;
}
.option-btn-external:hover {
    background: var(--primary) !important;
    color: white !important;
}

.rating-stars {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    padding: 14px 0 !important;
    margin: 10px 0 !important;
}

.rating-star {
    width: 38px !important;
    height: 38px !important;
    cursor: pointer !important;
    transition: transform 0.2s ease-out !important;
    user-select: none !important;
}

.rating-star svg {
    width: 100% !important;
    height: 100% !important;
    fill: var(--star-light-gray) !important;
    stroke: var(--star-gray) !important;
    stroke-width: 1.5 !important;
    transition: fill 0.2s ease-out, stroke 0.2s ease-out !important;
}

.rating-star:hover svg,
.rating-star.active svg {
    fill: var(--star-gold) !important;
    stroke: var(--star-gold) !important;
}

.rating-star:hover { transform: scale(1.15) !important; }

.external-link-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .feedback-btn-wrapper {
        right: 12px !important;
        bottom: 100% !important;
        margin-bottom: 6px !important;
    }

    .bot-toggle-btn {
        bottom: 16px !important;
        right: 16px !important;
        width: 81px !important;
        height: 81px !important;
    }
    .bot-toggle-btn svg {
        width: 38px !important;
        height: 38px !important;
    }

    .chat-window {
        top: 8px !important;
        bottom: 8px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        border-radius: 14px !important;
        padding-top: max(8px, env(safe-area-inset-top)) !important;
    }

    .chat-header {
        padding: 14px 16px !important;
    }
    .chat-header h4 { font-size: 15px !important; }

    .quick-consult-btn {
        padding: 9px 14px !important;
        font-size: 13px !important;
    }
    .quick-consult-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    .chat-close {
        font-size: 22px !important;
        padding: 4px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }

    .chat-messages {
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    .message {
        max-width: 92% !important;
        padding: 11px 14px !important;
        font-size: 14px !important;
        border-radius: 16px !important;
    }

    .chat-options {
        padding: 12px 14px !important;
        gap: 8px !important;
        padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    }

    .option-btn {
        padding: 10px 14px !important;
        font-size: 13px !important;
        min-height: 40px !important;
        border-radius: 20px !important;
        white-space: normal !important;
        word-wrap: break-word;
    }

    .rating-star {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 360px) {
    .option-btn {
        padding: 9px 12px !important;
        font-size: 12px !important;
        min-height: 38px !important;
    }
}

body.chat-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

.captcha-row {
    display: grid;
    grid-template-columns: 120px 120px;
    gap: 8px 12px;
    align-items: start;
    margin-top: 8px;
}

.captcha-left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.captcha-left img {
    width: 120px;
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: block;
    object-fit: contain;
    transition: all 0.3s;
}

.captcha-left img:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.captcha-refresh-link {
    background: none;
    border: none;
    padding: 0;
    margin-top: 4px;
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
}

.captcha-refresh-link:hover {
    color: var(--primary-hover);
}

#feedbackCaptcha {
    grid-column: 2;
    grid-row: 1;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    height: 50px;
    padding: 10px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 5px;
    text-align: center;
    background: #ffffff;
    color: var(--text-main);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#feedbackCaptcha:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 128, 169, 0.1);
}

@media (max-width: 480px) {
    .captcha-row { grid-template-columns: 100px 100px; }
    .captcha-left img { width: 100px; height: 42px; }
    #feedbackCaptcha {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        height: 42px;
        font-size: 18px;
        letter-spacing: 4px;
        padding: 10px 6px;
    }
}

.field-error {
    background-color: #ffe6e6 !important;
    border-color: #d3727c !important;
}


.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
