/* === Calculator wrapper === */
.pmc-calculator {
    background: #000;
    color: #fff;
    font-family: 'Didact Gothic', sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.pmc-calculator h2,h3,h4,h5 {
    font-family: 'Poppins', sans-serif;
    color: #00EBF7;
    margin-bottom: 10px;
}

/* === Layout === */
.pmc-row { display: flex; flex-wrap: wrap; margin-bottom: 20px; }
.pmc-col { padding: 10px; box-sizing: border-box; }
.pmc-col-33 { width: 33.33%; }

/* === Inputs === */
.pmc-calculator input,
.pmc-calculator textarea,
.pmc-calculator select {
    width: 100%;
    margin: 5px 0;
    padding: 8px;
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
    border-radius: 3px;
    box-sizing: border-box;
}

.pmc-calculator ::placeholder {
    color: #444 !important;
    opacity: 1;
}

/* === Calendar Table === */
.pmc-calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.pmc-calendar-table th,
.pmc-calendar-table td {
    border: 1px solid #555;
    width: 14.28%;
    height: 40px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}

.pmc-calendar-table th { color: #00EBF7; }
.pmc-calendar-table td { color: #fff; }
.pmc-calendar-table td.other-month { color: #555; }
.pmc-calendar-table td.selected { background-color: #00EBF7; color: #000; }
.pmc-calendar-table td.gcal-event { background-color: #FF9900 !important; color: #000 !important; font-weight: bold; }

/* === Days Row === */
.pmc-days-row { display: flex; flex-wrap: nowrap; margin-top: 20px; }
.pmc-field-names { width: 20%; padding-right: 10px; box-sizing: border-box; }
.pmc-days-80 { width: 80%; display: flex; flex-wrap: nowrap; justify-content: space-between; }

.pmc-day-block {
    border: 1px solid #555;
    padding: 10px;
    border-radius: 3px;
    background: #111;
    width: 16%; /* 80% / 5 ≈ 16% */
    box-sizing: border-box;
}

/* === Mobile Version === */
@media (max-width: 768px) {
    .pmc-days-row { flex-direction: column; }
    .pmc-field-names { display: none; }
    .pmc-days-80 { width: 100%; flex-direction: column; }
    .pmc-day-block { width: 100%; margin-bottom: 15px; display: none; }
    .pmc-day-block.active { display: block; } /* показуємо активний день */
    .pmc-day-fields-mobile { display: block; }
}

/* === Desktop / Tablet === */
@media (min-width: 769px) {
    .pmc-day-fields-mobile { display: none; }
}

/* === Total Price and Buttons === */
.pmc-total-price { margin-top: 20px; font-size: 1.8em; font-weight: bold; text-align: center; }

.pmc-calculator button {
    display: block;
    margin: 15px auto 0;
    background: #fff;
    color: #000;
    border: 1px solid #555;
    padding: 12px 30px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
}

.pmc-calculator button:hover { background: #000; color: #fff; }

/* === Overlay для Google Calendar === */
.pmc-calendar-overlay {
    position: fixed; /* fixed, щоб точно покривало всю сторінку */
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.pmc-calendar-overlay-content {
    text-align: center;
    color: #fff;
}

.pmc-calendar-overlay-content h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.pmc-calendar-overlay-content button {
    background: #00EBF7;
    color: #000;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
}

.pmc-calendar-overlay-content button:hover {
    background: #00c4d5;
}
