/*
 Theme Name:   My Listing Child
 Theme URI:    http://mylisting.27collective.net/my-city/
 Description:  MyListing Child Theme
 Author:       27collective
 Author URI:   https://27collective.net/
 Template:     my-listing
 Version:      1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         one-column, two-columns, three-columns, left-sidebar, right-sidebar, grid-layout, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  my-listing-child
*/

/* === Основной контейнер формы === */

/* === Поля и лейблы === */
#priceForm .form-group label,
#priceForm .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

#priceForm .form-control,
#priceForm .form-select {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.3s;
}

#priceForm .form-control:focus,
#priceForm .form-select:focus {
    border-color: #007316;
    box-shadow: 0 0 0 0.2rem rgba(0,115,22,0.2);
}

/* Контейнер радиокнопки с логотипом */
#priceForm .radio-logo {
    display: inline-block;
    width: 120px;      /* фиксированная ширина блока */
    height: 60px;      /* фиксированная высота блока */
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
    line-height: 60px; /* вертикальное выравнивание */
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    background-color: #f9f9f9;
}

#priceForm .radio-logo img {
    max-height: 65%;
    vertical-align: middle;
    object-fit: contain; /* сохраняем пропорции изображения */
}

/* Состояние выбранной радиокнопки */
#priceForm input[type="radio"]:checked + .radio-logo {
    border-color: #007316;
    background-color: #e6f5e6;
}

/* Скрываем сам input */
#priceForm input[type="radio"] {
    display: none;
}

/* === Кнопка отправки === */
#priceForm .btn-theme {
    background-color: #007316;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 20px;
    width: 100%;
    transition: all 0.3s;
}

#priceForm .btn-theme:hover {
    background-color: #005a12;
    transform: translateY(-1px);
}

/* === Блок результата === */
#priceForm #result .price_box {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    margin-top: 20px;
}

#priceForm #result .price_box span {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
}

#priceForm #result .total_price {
    margin-top: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #007316;
}

/* THC и страховка */
#priceForm .thc_but,
#priceForm .sigorta_but {
    color: #007316;
    font-weight: 500;
    display: inline-block;
    font-size: 14px;
}

#priceForm .thc_but:hover,
#priceForm .sigorta_but:hover {
    text-decoration: underline;
}

/* === Адаптация под мобильные === */
@media (max-width: 767px) {
    #priceForm .col-lg-3 {
        margin-bottom: 15px;
    }

    #priceForm input[type="radio"] + img {
        max-width: 80px;
    }
}


/* === Контейнер блока результата === */
.price_box {
    background-color: #f9f9f9; /* светлый фон */
    border: 1px solid #e0e0e0; /* легкая рамка */
    border-radius: 12px;        /* скругленные углы */
    padding: 20px;
    max-width: 400px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* === Штат === */
.price_box span:first-child {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

/* === Общая цена === */
.price_box .total_price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* === Цвет иконок и текста для THC и страховки === */
.price_box .thc_but,
.price_box .sigorta_but {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #007316;
    margin-bottom: 4px;
}

.price_box .thc_but i,
.price_box .sigorta_but i {
    margin-right: 6px;
    font-size: 16px;
}

/* === Отступ между THC и страховкой === */
.price_box .sigorta_but {
    margin-top: 4px;
}

/* === Адаптивность === */
@media (max-width: 480px) {
    .price_box {
        max-width: 100%;
        padding: 15px;
    }
    .price_box .total_price {
        font-size: 16px;
    }
    .price_box .thc_but,
    .price_box .sigorta_but {
        font-size: 13px;
    }
}









/* === Основная форма === */
#dutyForm {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

#dutyForm .form-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

#dutyForm .form-control,
#dutyForm .form-select {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 8px 12px;
    font-size: 14px;
    transition: 0.3s;
}

#dutyForm .form-control:focus,
#dutyForm .form-select:focus {
    border-color: #C9B47C;
    box-shadow: 0 0 5px rgba(201, 180, 124, 0.5);
    outline: none;
}

/* === Радиокнопки с изображениями === */
#dutyForm .form-group-inner label {
    display: inline-block;
    text-align: center;
    cursor: pointer;
    margin-right: 10px;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 5px;
    width: 120px;
    transition: 0.3s;
}

#dutyForm .form-group-inner input[type="radio"] {
    display: none;
}

#dutyForm .form-group-inner input[type="radio"]:checked + img {
    border: 2px solid #C9B47C;
    border-radius: 10px;
}

#dutyForm .form-group-inner img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: 0.3s;
}

/* === Кнопка отправки === */
#dutyForm button[type="submit"] {
    background-color: #13509f;
    border: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    padding: 10px 0;
    transition: 0.3s;
}

#dutyForm button[type="submit"]:hover {
    background-color: #2d568c;
}

/* === Результат === */
#resultCard {
    display: none;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

#resultCard .card-header {
    background-color: #1C2331 !important;
    color: #fff !important;
    font-weight: 600;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

#resultCard .card-body {
    padding: 20px;
    font-size: 14px;
}

.duty-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.duty-item:last-child {
    border-bottom: none;
}

.total-duty {
    font-weight: bold;
    font-size: 16px;
    color: #3C3C3C;
    margin-top: 10px;
}

/* === Ошибки === */
.alert-error {
    display: none;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 14px;
}

/* === Spinner === */
.spinner-border {
    color: #C9B47C !important;
}

/* === Мобильная адаптация === */
@media(max-width: 768px) {
    #dutyForm .form-group-inner label {
        width: 48%;
        margin-bottom: 8px;
    }
}

