/* Подключение шрифта Nunito Sans */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700;800&display=swap');

/* Контейнер плагина */
.dynamic-dropdown {
    font-family: 'Nunito Sans', sans-serif;
    color: #333333; /* базовый чёрный */
}

.dynamic-dropdown h1,
.dynamic-dropdown .subtitle {
    font-weight: 800;
    color: #333333;
}

@media (max-width: 600px) {
    .dynamic-dropdown h1 {
        font-size: 22px;      /* подбери значение под себя, можно 20px */
        line-height: 1.3;
        margin-bottom: 10px;
    }
}

.dynamic-dropdown .info p,
.dynamic-dropdown .details p {
    color: #333333;
}

.dynamic-dropdown .deadline-value,
.dynamic-dropdown .price-value,
.dynamic-dropdown .total-deadline,
.dynamic-dropdown .total-price,
.dynamic-dropdown .details span {
    font-weight: 800;
    color: #333333;
}

.dynamic-select {
    width: auto;
    min-width: 200px;         
    max-width: 100%;             
    padding: 12px 15px;
    font-size: 16px;
    font-family: 'Nunito Sans', sans-serif;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    color: #333333;
    outline: none;
    cursor: pointer;
    margin-bottom: 25px;
    /* Стрелка цвета #6762A7 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236762A7'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}


.dynamic-dropdown .btn {
    background: #6762A7;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 0 #4a457a;
}

.dynamic-dropdown .btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4a457a;
}

/* Вариант 2: чекбоксы – тексты чёрные */
.dynamic-dropdown .checkbox-actions button {
    background: #6762A7;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    margin-right: 10px;
    margin-bottom: 25px;
    cursor: pointer;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.dynamic-dropdown .checkbox-actions button:hover {
    background: #524a8a; /* затемнение при наведении */
}
.dynamic-dropdown .checkbox-actions button:active {
    transform: translateY(1px);
}
.dynamic-dropdown .checkbox-actions button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(103, 98, 167, 0.5);
}

.services-list {
    margin-bottom: 20px;
}
.service-item {
    display: block;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    cursor: pointer;
}
.service-item input {
    margin-right: 12px;
    vertical-align: top;
    margin-top: 5px;
}
.service-content {
    display: inline-block;
    width: calc(100% - 30px);
}
.service-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333333;
}
.service-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #333333;
}
.total-details {
    margin: 20px 0;
    font-weight: bold;
}
.total-details p {
    margin: 5px 0;
    color: #333333;
}
.total-deadline, .total-price {
    font-weight: 800;
    color: #333333;
}

/* Модальное окно */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito Sans', sans-serif;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: #fff;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #6762A7;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 800;
    color: #333333;
}

.modal-subtitle {
    margin-bottom: 25px;
    color: #555555;
    font-size: 14px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    transition: border 0.2s;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #6762A7;
}

.modal-form textarea {
    min-height: 100px;
    resize: vertical;
}

#service-modal .modal-submit-btn {
    background: #6762A7 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    box-shadow: 0 4px 0 #4a457a !important;
    width: auto !important;
    font-size: 16px !important;
}

#service-modal .modal-submit-btn:active {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 #4a457a !important;
}