﻿body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}


.hero-section {
    background-image: url('/images/bg/bg_2400x1595.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.hero-caption {
    max-width: 600px;
}

.ideas-section {
    padding: 50px 0;
}

.idea-block {
    margin-bottom: 30px;
}

h1 {
    font-weight: 700;
    font-size: 4.0rem;
}

.ItsTime {
    color: white;
    text-align: left;
    margin-bottom: 0px;
    font-weight: 500;
    font-size: 2.5rem;
}


.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Основной контейнер */
#divMain {
    max-width: 800px; /* Максимальная ширина */
    margin: 40px auto; /* Центрирование */
    background-color: #fff; /* Фон контейнера */
    padding: 20px 20px 40px; /* Отступы внутри */
    border-radius: 8px; /* Скруглённые углы */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Лёгкая тень */
    position: relative; /* Сохраняем позиционирование для модалок */
}

/* Заголовок */
h2 {
    text-align: center; /* По центру */
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
}

/* Поле ввода email */
#tbEmail,
#tbLetter {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    width: 100%;
    display: block;
    box-sizing: border-box; /* Чтобы ширина не «ломалась» */
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Поле ввода письма */
#tbLetter {
    height: 150px;
    resize: vertical; /* Можно растягивать только по вертикали */
}

/* Блок с ссылкой на выбор срока доставки */
#divDeliveryInfo {
    text-align: center;
    margin-bottom: 10px;
}

#lnkDeliveryInfo {
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    color: #4285f4; /* Ссылка в тон основной кнопке */
    cursor: pointer;
}

/* Опции доставки */
#divDeliveryOptions {
    /*display: none;*/
    margin-top: 10px;
    text-align: center;
}

.delivery-option {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    transition: opacity 0.2s ease-in-out;
}

    .delivery-option:hover {
        opacity: 0.8;
    }

/* Кнопка "SEND" */
#btnSend {
    width: 100%;
    padding: 12px;
    background-color: #4285f4; /* Синий цвет в стиле Google */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 16px;
    transition: background-color 0.2s ease-in-out;
}

    #btnSend:hover {
        background-color: #3367d6; /* При наведении чуть темнее */
    }

/* Ссылка "How it works?" */
#lnkHowItWorks {
    display: inline-block;
    text-decoration: none;
    color: #4285f4;
    margin-top: 10px;
    text-align: center;
}



/* Общий блок для всех модальных окон */
/*.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}*/





/* Иконка закрытия (крестик) */
/*.close-x {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #999;
}

    .close-x:hover {
        color: #666;
    }*/


/* Ошибка при подтверждении отправки */
#divConfirmSending_Loading {    
    text-align: center;
}

/* Ошибка при подтверждении отправки */
#divConfirmSending_Error {
    color: red;
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
    display: none;
}

/* Сообщение об успешном подтверждении */
#divConfirmSending_Message {
    color: green;
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
    display: none;
}

/* Поле ввода кода подтверждения */
#divConfirmationCode {
    display: none;
    margin-bottom: 15px;
}

#tbConfirmationCode {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Кнопка в модальном окне подтверждения */
#btnConfirmEmail {
    background-color: #4285f4;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 8px 16px;
    margin-top: 10px;
    font-size: 16px;
    transition: background-color 0.2s ease-in-out;
}

    #btnConfirmEmail:hover {
        background-color: #3367d6;
    }

/* Кнопка "Close" в модальном окне */
#btnConfirmSendingClose {
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    padding: 8px 16px;
    margin-top: 5px;
}

    #btnConfirmSendingClose:hover {
        background-color: #e6e6e6;
    }



/* Update backdrop to use ID instead of class */
#backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 100000;
}

/* Keep only one modal style definition and update z-index */
/*.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding-top: 40px;
    text-align: center;
    min-height: 200px;
    z-index: 100001;

    flex-direction: column;
    min-height: 220px;
}*/

/* Rest of your existing modal styles remain the same */
.close-x {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #999;
}

.close-x:hover {
    color: #666;
}

/*.bottom-button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}*/




#tableLetterInfo {
    width: 100%;
    border: 0;
    margin-top: 20px;
}

    #tableLetterInfo td {
        padding: 10px;
        text-align: left;
    }

    #tableLetterInfo .label{
        text-align:right;
    }


    /* confirmation code ----------------- */
    .confirmation-input-container {
        max-width: 400px;
        margin: 0 auto;
        text-align: center;
    }

.code-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}

.code-input {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 24px;
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 4px;
    background: transparent;
}

    .code-input:focus {
        outline: none;
        border-bottom-color: #3b82f6;
    }

.hint {
    font-size: 14px;
    color: #666;
}






/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding-top: 40px;
    text-align: center;
    /* Remove min-height to allow natural content height */
    max-height: 60vh; /* Prevent modal from being taller than viewport */
    overflow-y: auto; /* Add scrolling if content is too long */
    z-index: 100001;
    /* Use flex layout for internal content */
    flex-direction: column;
}

/* Bottom button container stays at bottom */
.bottom-button-container {
    margin-top: auto;
    padding-top: 20px;
}

/* Style scrollbar for better appearance */
.modal::-webkit-scrollbar {
    width: 8px;
}

.modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    .modal::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

@keyframes blink {
    0%, 49%, 100% {
        outline: none;
        box-shadow: none;
        background-color: inherit;
    }

    25%, 75% {
        outline: 3px solid #a5d6a7;
        background-color: #d4f4dd;
        box-shadow: 0 0 10px #2e7d32;
    }
}

.blinking {
    animation: blink 1s linear 2 !important;
}

/* ------------------------------------------- */