/* ===============================
   Perustypografia
   =============================== */
.takaovi-reservation {
    font-size: 1rem;
    line-height: 1.6;
    color: #222;
}

.takaovi-reservation h2,
.takaovi-reservation h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: #111;
}

/* ===============================
   Countdown
   =============================== */
#takaovi-countdown {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.8rem 0 1.2rem;
    color: #F37C22;
}

/* ===============================
   Form Grid
   =============================== */
.takaovi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.takaovi-section label {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
}

/* Lomakekentät */
.takaovi-grid input,
.takaovi-grid select,
.takaovi-grid textarea {
    width: 100%;
    padding: 0.7rem;
    font-size: 1rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #bbb;
    color: #222;
}

.takaovi-grid input::placeholder,
.takaovi-grid textarea::placeholder {
    color: #888;
}

/* ===============================
   Submit Button (Pääpainike)
   =============================== */
#takaovi-submit {
    background-color: #F37C22 !important;
    color: #fff !important;
    border: none !important;
    padding: 0.95rem 1.6rem;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.2rem !important;
    margin-bottom: 1.4rem !important;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

#takaovi-submit:hover:not(.disabled) {
    background-color: #d8681c !important;
    transform: translateY(-1px);
}

#takaovi-submit.disabled {
    cursor: not-allowed;
    opacity: 0.45;
    background-color: #777 !important;
}

/* ===============================
   Taulukko
   =============================== */
.takaovi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.takaovi-table th {
    color: #222;
    font-weight: 700;
    background: #f4f4f4;
    border-bottom: 2px solid #ddd;
}

.takaovi-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    color: #222;
}

/* Hover */
.takaovi-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* ===============================
   Buttons
   =============================== */
.takaovi-btn {
    background-color: #666;
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    border-radius: 6px;
    color: #fff;
    transition: opacity .2s ease;
}

/* Lisää ja Poista sinisenä */
.takaovi-btn-small,
.takaovi-btn-link {
    background-color: #21A9E1 !important;
    color: #fff !important;
}

.takaovi-btn-small:hover:not(.disabled),
.takaovi-btn-link:hover:not(.disabled) {
    background-color: #0066cc !important;
}

/* Poista napissa ei alleviivausta */
.takaovi-btn-link {
    border: none;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
}

/* ===============================
   Messages
   =============================== */
.takaovi-message-success {
    color: #2fa043;
    font-weight: 700;
    margin-top: 0.4rem;
}

.takaovi-message-error {
    color: #c80000;
    font-weight: 700;
    margin-top: 0.4rem;
}

/* ===============================
   Mobiilioptimointi
   =============================== */
@media (max-width: 768px) {

    .takaovi-grid {
        grid-template-columns: 1fr;
    }

    #takaovi-submit {
        width: 100%;
    }

    .takaovi-table th:nth-child(6),
    .takaovi-table td:nth-child(6),
    .takaovi-table th:nth-child(7),
    .takaovi-table td:nth-child(7) {
        display: none;
    }

    .takaovi-btn-small {
        width: 100%;
        margin-top: 4px;
    }

    #takaovi-countdown {
        display: inline-block;
        text-align: left;         /* keskitetty vasemmalle */
        min-width: 260px;         /* estää tekstin hyppimisen */
        white-space: nowrap;      /* estää rivinvaihdot */
    }
}
