/* =========================
   БАЗОВІ НАЛАШТУВАННЯ
========================= */

#gate-calculator-box,
#gate-calculator-box * {
    box-sizing: border-box;
}

#gate-calculator-box {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* =========================
   ЗАГОЛОВОК
========================= */

#gate-calculator-box h2 {
    margin: 0 0 30px;
    padding: 0;
    text-align: center;
    font-size: 32px;
    line-height: 1.3;
}


/* =========================
   ПОЛЯ
========================= */

.gc-single {
    display: block;
    width: 100%;
    margin: 0 0 20px;
}

.gc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    gap: 20px;
    margin: 0 0 20px;
}

.gc-field {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.gc-single label,
.gc-field label {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    font-weight: 600;
    line-height: 1.4;
}


/* =========================
   SELECT ТА INPUT
========================= */

#gate-calculator-box select,
#gate-calculator-box input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
    font-size: 16px;
    line-height: 48px;
    float: none;
    clear: both;
    outline: none;
}

#gate-calculator-box select:focus,
#gate-calculator-box input:focus {
    border-color: #0c7a43;
    box-shadow: 0 0 0 2px rgba(12, 122, 67, 0.12);
}


/* =========================
   РЕЗУЛЬТАТ
========================= */

.gc-result {
    display: block;
    width: 100%;
    margin-top: 30px;
    text-align: center;
}

.gc-price {
    margin: 0;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: #0c7a43;
}


/* =========================
   КНОПКИ
========================= */

#gate-calculator-box button,
#gate-calculator-box .gc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 8px;
    background: #0c7a43;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
}

#gate-calculator-box button:hover,
#gate-calculator-box .gc-button:hover {
    opacity: 0.9;
}


/* =========================
   ПЛАНШЕТИ
========================= */

@media (max-width: 1024px) {

    #gate-calculator-box {
        max-width: calc(100% - 40px);
        margin: 30px auto;
        padding: 26px;
    }

    #gate-calculator-box h2 {
        font-size: 29px;
    }
}


/* =========================
   МОБІЛЬНІ
========================= */

@media (max-width: 767px) {

    #gate-calculator-box {
        max-width: calc(100% - 24px);
        margin: 20px auto;
        padding: 20px;
        border-radius: 10px;
    }

    #gate-calculator-box h2 {
        margin-bottom: 24px;
        font-size: 25px;
    }

    .gc-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .gc-single,
    .gc-row {
        margin-bottom: 18px;
    }

    #gate-calculator-box select,
    #gate-calculator-box input {
        height: 50px;
        font-size: 16px;
        line-height: 50px;
    }

    .gc-result {
        margin-top: 24px;
    }

    .gc-price {
        font-size: 34px;
    }

    #gate-calculator-box button,
    #gate-calculator-box .gc-button {
        width: 100%;
    }
}


/* =========================
   МАЛІ ТЕЛЕФОНИ
========================= */

@media (max-width: 480px) {

    #gate-calculator-box {
        max-width: calc(100% - 16px);
        margin: 16px auto;
        padding: 16px;
        border-radius: 8px;
    }

    #gate-calculator-box h2 {
        margin-bottom: 20px;
        font-size: 22px;
    }

    .gc-single label,
    .gc-field label {
        font-size: 14px;
    }

    #gate-calculator-box select,
    #gate-calculator-box input {
        height: 48px;
        padding: 0 12px;
        font-size: 15px;
        line-height: 48px;
    }

    .gc-price {
        font-size: 30px;
    }
}
/* ===== КНОПКА ===== */

#gate-calculator-box .gc-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:25px;
    padding:16px 36px;
    background:#00a651;
    color:#fff;
    border:none;
    border-radius:50px;
    font-size:16px;
    font-weight:700;
    line-height:1;
    cursor:pointer;
    transition:.25s;
    box-shadow:0 8px 20px rgba(0,166,81,.25);
}

#gate-calculator-box .gc-button:hover{
    background:#008f46;
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(0,166,81,.35);
}

#gate-calculator-box .gc-button:active{
    transform:translateY(0);
}

@media (max-width:767px){

#gate-calculator-box .gc-button{
    width:100%;
}

}
/* ===== КНОПКА DORMATIC ===== */

#gate-calculator-box .theme-btn-one{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:260px;
    margin-top:25px;
    white-space:nowrap;
}

#gate-calculator-box .theme-btn-one .btn-shape{
    pointer-events:none;
}

@media (max-width:767px){

    #gate-calculator-box .theme-btn-one{
        width:100%;
        min-width:100%;
    }

}