/* terrace-calculator.css - Стилі для калькулятора терасної дошки */
.decking-calculator-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8faf5 100%);
    border-radius: 32px;
    padding: 0;
    margin: 40px 0;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.calculator-header {
    background: #687559;
    padding: 28px 32px;
    text-align: center;
}

.calculator-header h2 {
    color: white !important;
    margin: 0 0 8px 0 !important;
    font-size: 28px;
    font-weight: 600;
}

.calculator-header p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 15px;
}

.calculator-body {
    padding: 32px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.form-row .form-group {
    flex: 1 1 calc(33% - 16px);
    min-width: 180px;
    margin-bottom: 0;
}

.form-row .form-group .form-calc,
.form-row .form-group .control-label {
    width: 100%;
    text-align: center;
}

.calc-result-card {
    background: #f0f7ed;
    border-radius: 28px;
    padding: 8px 0;
    margin-top: 24px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    padding: 16px;
}

.result-item {
    background: white;
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.result-label {
    font-weight: 500;
    color: #4a6741;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.result-value {
    font-weight: 800;
    font-size: 22px;
    color: #2c5f2d;
    background: #e8f3e4;
    padding: 4px 14px;
    border-radius: 40px;
}

.result-value small {
    font-size: 12px;
    font-weight: normal;
}

.calc-note {
    background: #fff9e8;
    border-left: 4px solid #ffb347;
    padding: 14px 20px;
    border-radius: 16px;
    margin: 20px 0 0;
    font-size: 13px;
    color: #6b5a3e;
}

#btn,
#calc-btn,
#send-order-btn {
    min-height: 50px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: none !important;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.375em 0.75em;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375em;
    transition: all 0.15s ease-in-out;
}

.btn-calc-custom-small {
    background-color: #677559;
    opacity: 0.9;
    border-radius: 5px;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 33px;
    height: 45px;
    width: 100%;
    padding: 0px 25px 0 25px;
    text-transform: uppercase;
    float: left;
    margin: auto;
    position: relative;
    transition: all 0.2s ease-in-out 0s;
}

.btn-calc-custom-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.4);
    background: linear-gradient(135deg, #ff9a55 0%, #f07b3a 100%);
}

.btn-calc-custom {
    background-color: #677559;
    opacity: 0.9;
    border-radius: 5px;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 33px;
    height: 45px;
    width: 100%;
    padding: 0px 25px 0 25px;
    text-transform: uppercase;
    float: left;
    margin: auto;
    position: relative;
    transition: all 0.2s ease-in-out 0s;
}

.btn-calc-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.4);
    background: linear-gradient(135deg, #ff9a55 0%, #f07b3a 100%);
}

@media (max-width: 768px) {
    .calculator-body {
        padding: 20px;
    }

    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .result-value {
        font-size: 18px;
    }
}