/* =========================================================
   ОБЩАЯ СЕТКА
   ========================================================= */
.my3d-layout {
    max-width: 1100px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Мобильная адаптация */
@media (max-width: 900px) {
    .my3d-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =========================================================
   ЛЕВАЯ КОЛОНКА (КАЛЬКУЛЯТОР)
   ========================================================= */
.my3d-form-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 24px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.my3d-field { margin-bottom: 16px; }
.my3d-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}
.my3d-field input[type="file"],
.my3d-field input[type="number"],
.my3d-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
    font-family: inherit;
}
.my3d-field input:focus,
.my3d-field select:focus {
    outline: none;
    border-color: #ff7a00;
}

/* Двухколоночный ряд в форме */
.my3d-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .my3d-row-2col { grid-template-columns: 1fr; gap: 0; }
}

/* Кнопка «Заказать» */
.my3d-btn-order,
#my3d-order-btn {
    display: inline-block;
    background: #ff7a00;
    color: #fff;
    border: 0;
    padding: 14px 30px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: background 0.15s ease;
    margin-top: 16px;
    width: 100%;
}
.my3d-btn-order:hover,
#my3d-order-btn:hover { background: #e66d00; }
.my3d-btn-order:active,
#my3d-order-btn:active { background: #cc5f00; }

/* Блок результата */
#my3d-result {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-left: 4px solid #ff7a00;
    border-radius: 4px;
}
#my3d-result h3 { margin-top: 0; font-size: 18px; }
.my3d-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 15px;
}
.my3d-result-grid span { color: #666; }
.my3d-result-grid strong { color: #111; font-size: 16px; }

.my3d-cost-line {
    font-size: 18px;
    margin: 12px 0 8px;
    padding-top: 12px;
    border-top: 1px dashed #ccc;
}
.my3d-cost-line strong {
    color: #e66d00;
    font-size: 24px;
}
.my3d-disclaimer {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
    margin: 8px 0 0;
}

.my3d-status {
    margin: 10px 0;
    font-size: 14px;
    min-height: 18px;
    color: #666;
}

/* Вьювер */
.my3d-viewer-wrap { margin-top: 24px; }
#my3d-viewer {
    width: 100%;
    height: 450px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    cursor: grab;
}
#my3d-viewer:active { cursor: grabbing; }

/* =========================================================
   ПРАВАЯ КОЛОНКА (ГИД)
   ========================================================= */
.my3d-sidebar {
    position: sticky;
    top: 20px;
}
.my3d-sidebar h3 {
    margin: 0 0 16px;
    font-size: 20px;
    color: #111;
}

.my3d-guide-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.15s ease;
}
.my3d-guide-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.my3d-guide-card.highlight {
    border-color: #ffcc99;
    background: #fffaf5;
}

.my3d-guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.my3d-guide-header h4 {
    margin: 0;
    font-size: 16px;
    color: #111;
    font-weight: 700;
}
.my3d-price-tag {
    background: #f3f4f6;
    color: #555;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.my3d-guide-desc {
    margin: 0 0 10px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.my3d-pros-cons {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}
.my3d-pros-cons li { margin-bottom: 4px; }
.my3d-pros-cons li.pro { color: #15803d; }
.my3d-pros-cons li.con { color: #b91c1c; }

.my3d-guide-note {
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 4px;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    border-left: 3px solid #ff7a00;
}

/* =========================================================
   ФОРМА CF7
   ========================================================= */
#my3d-cf7-wrap {
    margin-top: 30px;
    padding: 24px;
    background: #fff7ef;
    border: 1px solid #ffd7ae;
    border-radius: 6px;
}
#my3d-cf7-wrap h3 { margin-top: 0; margin-bottom: 20px; }

.my3d-cf7-form .my3d-cf7-row { margin-bottom: 14px; }
.my3d-cf7-form label { display: block; font-size: 14px; font-weight: 600; }
.my3d-cf7-form input[type="text"],
.my3d-cf7-form input[type="tel"],
.my3d-cf7-form input[type="email"],
.my3d-cf7-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}
.my3d-cf7-form input:focus,
.my3d-cf7-form textarea:focus { outline: none; border-color: #ff7a00; }
.my3d-cf7-form textarea { resize: vertical; min-height: 90px; }

.my3d-cf7-summary {
    margin: 18px 0;
    padding: 14px 18px;
    background: #fff;
    border: 1px dashed #ffb877;
    border-radius: 4px;
    font-size: 14px;
}
.my3d-cf7-summary-title { margin: 0 0 8px; font-weight: 700; color: #e66d00; }
.my3d-cf7-summary p { margin: 4px 0; }
.my3d-cf7-model a { display: inline-block; margin-top: 6px; color: #0077ff; text-decoration: underline; font-weight: 600;}

.my3d-cf7-submit { margin-top: 18px; }
.my3d-cf7-submit input[type="submit"] {
    display: inline-block;
    background: #ff7a00;
    color: #fff;
    border: 0;
    padding: 14px 30px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.15s ease;
    width: 100%;
}
.my3d-cf7-submit input[type="submit"]:hover { background: #e66d00; }
.my3d-cf7-form .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}
