/* Основний контейнер калькулятора */
#calculator-mini {
    max-width: 1010px;
    max-height: 1005px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 5px 40px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.control-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

#result {
	width: 500px;
    margin: auto;
    padding: 40px;
}

/* Для заголовків і контролів */
#calculator label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    font-size: 14px;
}

#calculator select,
#calculator input[type="text"],
#calculator button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Для тексту-попередження */
#calculator .warning-text {
    font-size: 12px;
    color: #d9534f;
    margin-top: 5px;
}

/* Для кнопки розрахунку */
#calculate-button {
    grid-column: span 2;
    padding: 15px;
    font-size: 16px;
    background-color: #5cb85c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#calculate-button:disabled {
    background-color: #c7c7c7;
    cursor: not-allowed;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {

.header-top {	
	display: flex;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 20px 10px;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 10px 0px;
}

    #calculator {
        grid-template-columns: 1fr;
    }

    #calculate-button {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    #calculator {
        padding: 10px;
        grid-gap: 10px;
    }

    #calculator select,
    #calculator input[type="text"],
    #calculator button {
        font-size: 12px;
        padding: 8px;
    }

    #calculate-button {
        font-size: 14px;
        padding: 10px;
    }
}


.uneditable-input {
	border-radius: 0;
    font-size: 12px;
    background: #fff;
    padding: 5px 0px;
    border: solid 1px #ccc;
    height: 20px;
    width: 100%;
    margin: 0px;
    text-align: center;
}





body {
    font-family: 'Didact Gothic', Arial, sans-serif;
    margin: 0;
    padding: 0;
	/*background-image: url('https://decosun.ua/images/test.png'); /*валентин хедер*/
}

.operator-icon {
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #c7c7c712;
    padding: 10px 20px;

}
@media (max-width: 1024px) {
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #c7c7c712;
    padding: 10px 20px;
	    margin-top: 10%;
}
}

.contact-info-wrapper {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.working-hours {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
    text-align: right;
    line-height: 1.4;
    color: #333;
    min-width: 120px;
    align-items: center;
}

.working-hours strong {
    font-weight: bold;
    margin-bottom: 3px;
}


.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    margin-right: 70px;
    margin-left: 60px;
}

.exchange-rate {
    font-size: 14px;
    color: #333;
}

.contact-info {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0px;
    flex-direction: row;
}

.contact-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 15px;
	font-size: 12px;
	min-width: 98px;
}

.contact-group strong {
    font-weight: bold;
    margin-bottom: 0px;
}

.contact-group span {
    margin: 2px 0;
    font-size: 11px;
}

.banner-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 410px; /* Adjust the height as needed */
}

.banner {
    display: flex;
    width: 300%; /* Assuming 3 images, adjust if more or fewer */
    animation: slide 15s infinite;
}

.banner img {
    width: 100%;
    height: auto;
}

@keyframes slide {
    0%, 20%, 100% { transform: translateX(0); }
    25%, 45% { transform: translateX(-100%); }
    50%, 70% { transform: translateX(-200%); }
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-item.active {
    opacity: 1;
}


main {
    max-width: 1200px;
    margin: 10px auto;
    width: 90%;
    padding: 20px;
    background-color: rgb(255 255 255 / 75%);
    border-radius: 8px;
    
    min-height: calc(100vh - 60px - 60px); /* 100vh мінус хедер (60px) і футер (60px) */
    display: flex;
    flex-direction: column;
}

main h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

main p, main a, main form {
	margin-bottom: 0px;
    line-height: 1;
    font-size: 1.1em;
}

main a {
    color: #f8d000;
    text-decoration: none;
}

main a:hover {
    text-decoration: underline;
}

main form input, main form textarea {
    width: 100%;
    margin-top: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

main form button {
    padding: 10px 20px;
    background-color: #f8d000;
    border: none;
    color: #333;
    font-size: 1.1em;
    cursor: pointer;
}

main form button:hover {
    background-color: #e0be00;
}


@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    main h1 {
        font-size: 1.5em;
    }

    main p, main a, main form {
        font-size: 1em;
    }

    main form button {
        width: 100%;
        padding: 15px;
        font-size: 1.2em;
    }
}

.breadcrumb {
	font-size: 12px;
    color: #6d6d71;
    padding: 0px 15%;
    background: #f5f5f5;
    border-bottom: 0px solid #ddd;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
    font-weight: bold;
}

::selection {
    background-color: rgb(150 200 255);; /* яскраво-салатовий */
    color: #000; /* чорний текст для контрасту */
}

::-moz-selection { /* для Firefox */
    background-color: rgb(150 200 255);;
    color: #000;
}


/* ВКЛАДКИ */

    .tabs {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .tab-btn {
        padding: 10px 20px;
        cursor: pointer;
        border: 1px solid #ccc;
        background: #f9f9f9;
        transition: background 0.3s;
    }

    .tab-btn.active {
        background: #ddd;
        font-weight: bold;
    }

    .tab-btn:not(:last-child) {
        border-right: none;
    }

    .tab-content {
        display: none;
    }

    .tab-content.active {
        display: block;
    }
.modal-content {
    background: white;
    padding: 20px;
    position: relative;
    max-width: 97%;
    height: 95%;
    border-radius: 0px;
	margin: auto;
}