@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

.hud-calc-wrapper {
    font-family: 'Share Tech Mono', monospace;
    background: #ffffff;
    border: 2px solid rgb(0, 41, 189);
    padding: 25px;
    color: #1a1a1a;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 41, 189, 0.15);
}

/* Легкая инженерная сетка на фоне калькулятора */
.hud-calc-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(0, 41, 189, 0.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 41, 189, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.hud-calc-header { 
    font-size: 1.2em; 
    border-bottom: 2px dashed rgb(0, 41, 189); 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
    color: rgb(0, 41, 189);
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.hud-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Блок с редактируемой подсказкой */
.hud-hint-text {
    font-size: 0.9em;
    color: #444444;
    background: rgba(0, 41, 189, 0.04);
    border-left: 3px solid rgb(0, 41, 189);
    padding: 12px 15px;
    margin-bottom: 20px;
    line-height: 1.4;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.hud-calc-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    position: relative; 
    z-index: 1;
}

.hud-input-group { 
    flex: 1 1 calc(33.333% - 10px); 
    display: flex; 
    flex-direction: column; 
}

.hud-input-group.full-width { flex: 1 1 100%; }

.hud-input-group label { 
    font-size: 0.85em; 
    margin-bottom: 5px; 
    color: #555555; 
    text-transform: uppercase;
}

/* Поля ввода с четкими границами */
.hud-calc-wrapper input, .hud-calc-wrapper select {
    background: #fdfdfd;
    border: 1px solid #b3c6ed; /* Светло-синяя граница */
    color: #000000;
    padding: 12px;
    font-family: inherit;
    font-size: 1em;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Акцент при клике на поле */
.hud-calc-wrapper input:focus, .hud-calc-wrapper select:focus {
    background: #ffffff;
    border: 1px solid rgb(0, 41, 189);
    box-shadow: 0 0 8px rgba(0, 41, 189, 0.2);
}

.hud-result-panel {
    margin: 25px 0;
    padding: 20px;
    border: 1px dashed rgb(0, 41, 189);
    text-align: left;
    background: rgba(0, 41, 189, 0.05); /* Легкий синий фон для выделения итога */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hud-result-label { 
    color: #555555; 
    font-weight: bold;
}

.hud-result-value { 
    font-size: 2.2em; 
    font-weight: bold; 
    color: rgb(0, 41, 189);
}

/* БЛОК ЗАХВАТА (ФОС) */
.hud-lead-capture {
    border: 2px solid rgb(0, 41, 189);
    padding: 25px;
    position: relative;
    background: #ffffff;
    z-index: 1;
}

/* Декоративные HUD-уголки */
.hud-lead-capture::before, .hud-lead-capture::after {
    content: ''; 
    position: absolute; 
    width: 15px; 
    height: 15px; 
    border: 3px solid rgb(0, 41, 189);
}
.hud-lead-capture::before { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.hud-lead-capture::after { bottom: -3px; right: -3px; border-left: none; border-top: none; }

.hud-lead-header { 
    font-size: 1.3em; 
    font-weight: bold; 
    color: rgb(0, 41, 189);
    margin-bottom: 10px; 
}

.hud-lead-desc { 
    font-size: 0.9em; 
    color: #444444; 
    margin-bottom: 20px; 
    line-height: 1.4; 
}

.hud-form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Кнопка отправки с принудительным переопределением стилей темы WoodMart */
.hud-btn {
    width: 100% !important; 
    padding: 15px !important; 
    background: rgb(0, 41, 189) !important; 
    border: 1px solid rgb(0, 41, 189) !important;
    color: #ffffff !important; 
    font-family: inherit !important; 
    font-size: 1.2em !important; 
    font-weight: bold !important;
    cursor: pointer !important; 
    transition: 0.3s !important;
    border-radius: 0 !important; /* Убираем скругления, если тема их добавляет */
}

.hud-btn:hover { 
    background: rgb(0, 25, 120) !important; /* Более темный синий при наведении */
    color: #ffffff !important; 
    box-shadow: 0 4px 12px rgba(0, 41, 189, 0.4) !important;
}

#hud-form-msg { 
    margin-top: 15px; 
    font-size: 0.9em; 
    text-align: center; 
    font-weight: bold;
}

.hud-msg-success { color: rgb(0, 41, 189); }
.hud-msg-error { color: #dc3545; }