/* Основной контейнер */
.stone-calc-wrapper {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 450px;
    margin: 20px auto;
    font-family: 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    position: relative;
}

.stone-calc-header {
    background: #2e7d32;
    color: white;
    padding: 20px;
    text-align: center;
}
.stone-calc-header h3 { margin: 0; font-size: 1.4rem; color: white; }
.stone-calc-header p { margin: 5px 0 0; font-size: 0.9rem; opacity: 0.9; color: #e8f5e9; }

.stone-calc-body { padding: 25px; }

/* Поля */
.calc-group { margin-bottom: 20px; }
.calc-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; }

.stone-calc-wrapper select,
.stone-calc-wrapper input {
    width: 100%;
    /* padding: 12px; */
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}
.stone-calc-wrapper input:focus, .stone-calc-wrapper select:focus { border-color: #2e7d32; outline: none; }

/* Индивидуальный стиль для поля площади */
#stoneArea {
    padding-left: 15px;
    text-align: left;
}

#userName, #userPhone {
    margin-bottom: 20px;
}

/* Чекбокс */
.checkbox-group .custom-checkbox { display: flex; align-items: center; cursor: pointer; }
.checkbox-group input { width: 20px; height: 20px; margin-right: 10px; accent-color: #2e7d32; }

/* Результат */
.calc-result-box {
    background: #f1f8e9;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    margin-bottom: 20px;
    border: 1px dashed #2e7d32;
}
.result-value { font-weight: 800; font-size: 1.2rem; color: #2e7d32; padding-left: 10px; }

/* Кнопки */
.btn-calc-submit {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}
.btn-calc-submit:hover { background: #20bd5a; }
.btn-modal { background: #2e7d32; margin-top: 10px; }

/* --- МОДАЛЬНЫЕ ОКНА --- */
.calc-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.calc-modal-overlay.active { display: flex; opacity: 1; }

.calc-modal {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}
.calc-modal-overlay.active .calc-modal { transform: translateY(0); }

.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

/* Окно успеха */
.success-icon {
    font-size: 50px;
    margin-bottom: 15px;
}
.success-modal-content h4 { color: #2e7d32; margin-top: 0; }

/* SPAM HONEYPOT */
.special-h-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

#formMessage .msg-error { color: red; margin-top: 10px; display: block; }

@media (max-width: 480px) {
    .stone-calc-wrapper { margin: 10px; }
}