/* == Polux WhatsApp Booking — Frontend CSS == */

/* Inline button */
.pwb-btn {
    display: inline-flex; align-items: center;
    background: #fff;
    color: var(--theme-palette-color-3, #384257); font-weight: 700; font-family: inherit; font-size: 1rem;
    border-radius: 100px; padding: 5px 5px 5px 20px;
    border: 1px solid var(--theme-palette-color-3, #384257); 
    cursor: pointer; text-decoration: none !important;
    transition: opacity .18s, transform .15s; line-height: 1.2;
}
.pwb-btn:hover { opacity: .87; transform: scale(1.02); }
.pwb-btn-label { margin-right: 14px; }

/* WA icon circle */
.pwb-ico {
    background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pwb-btn    .pwb-ico { width: 44px; height: 44px; }
.pwb-float  .pwb-ico { width: 40px; height: 40px; }
.pwb-submit .pwb-ico { width: 34px; height: 34px; }
.pwb-modal-head .pwb-ico { width: 42px; height: 42px; }

/* Float */
.pwb-float {
    position: fixed; bottom: 25px; right: 25px; z-index: 9990;
    display: flex; align-items: center; gap: 10px;
    background: #fff ;
    color: var(--theme-palette-color-3, #384257) !important; font-weight: 700; font-family: inherit; font-size: .92rem;
    border-radius: 100px; padding: 5px 20px 5px 5px;
    box-shadow: 0 4px 20px rgba(0,22,50,.28);
    border: none; cursor: pointer; transition: opacity .18s, transform .15s;
}
.pwb-float:hover { opacity: .87; transform: scale(1.03); }

/* Overlay */
.pwb-overlay {
    display: none; position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,22,50,.55); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: 16px;
}
.pwb-overlay.pwb-open { display: flex; }

/* Modal */
.pwb-modal {
    background: #fff; border-radius: 18px; width: 100%; max-width: 480px;
    box-shadow: 0 16px 56px rgba(0,22,50,.22); overflow: hidden;
    font-family: inherit; max-height: 92vh; display: flex; flex-direction: column;
}

/* Modal head */
.pwb-modal-head {
    background: var(--theme-palette-color-3, #384257);
    color: #fff; padding: 20px 24px;
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.pwb-modal-head-left { display: flex; align-items: center; gap: 14px; }
.pwb-modal-head h3   { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.2; color:var(--theme-palette-color-6, #fff); }
.pwb-modal-head p    { margin: 2px 0 0; font-size: .82rem; opacity: .78; }
.pwb-modal-close {
    background: rgba(255,255,255,.18); border: none; border-radius: 50%;
    width: 34px; height: 34px; cursor: pointer; color: #fff; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s; flex-shrink: 0;
}
.pwb-modal-close:hover { background: rgba(255,255,255,.32); }

/* Modal body */
.pwb-modal-body { padding: 24px; overflow-y: auto; }
.pwb-modal-body label {
    display: block; font-size: .88rem; font-weight: 700;
    color: #1d2327; margin: 0 0 5px;
}
.pwb-modal-body label .opt { font-weight: 400; color: #888; font-size: .82rem; margin-left: 4px; }
.pwb-modal-body input,
.pwb-modal-body textarea {
    width: 100%; box-sizing: border-box;
    border: 1.5px solid #dde3ec; border-radius: 9px;
    padding: 10px 14px; font-size: .95rem; font-family: inherit;
    color: #1d2327; outline: none; background: #fff; transition: border-color .15s;
}
.pwb-modal-body input:focus,
.pwb-modal-body textarea:focus { border-color: var(--theme-palette-color-3, #384257); }
.pwb-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pwb-field { margin-bottom: 16px; }
.pwb-modal-body textarea { resize: vertical; min-height: 80px; }

/* Season info */
.pwb-season-info {
    font-size: .82rem;
    color: var(--theme-palette-color-3, #384257);
    background: #f0f4f8;
    border-left: 3px solid var(--theme-palette-color-1, #0f478b);
    border-radius: 0 6px 6px 0;
    padding: 8px 12px;
    margin: -4px 0 16px;
    line-height: 1.5;
}

/* Season error */
.pwb-season-error {
    color: #c0392b;
    font-size: .84rem;
    font-weight: 600;
    background: #fdf0ef;
    border: 1px solid #f5c6c2;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Modal foot */
.pwb-modal-foot { padding: 0 24px 24px; flex-shrink: 0; }
.pwb-submit {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; background: var(--theme-palette-color-3, #384257);
    color: #fff; font-weight: 700; font-size: 1rem; font-family: inherit;
    border: none; border-radius: 100px; padding: 14px 24px;
    cursor: pointer; transition: opacity .18s;
}
.pwb-submit:hover { opacity: .88; }

/* Buton disabled */
.pwb-submit--disabled,
.pwb-submit:disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

.pwb-note {
    text-align: center; font-size: .78rem; color: #aaa; margin: 10px 0 0;
}

/* Mobile */
@media (max-width: 480px) {
    .pwb-overlay { padding: 8px; }
    .pwb-modal { border-radius: 14px; max-height: 95vh; }
    .pwb-modal-head { padding: 14px 16px; }
    .pwb-modal-head .pwb-ico { width: 36px; height: 36px; }
    .pwb-modal-head-left { gap: 10px; }
    .pwb-modal-head h3 { font-size: 1.05rem; }
    .pwb-modal-head p { font-size: .75rem; }
    .pwb-modal-body { padding: 14px 16px; }
    .pwb-modal-body label { font-size: .82rem; margin-bottom: 3px; }
    .pwb-modal-body input,
    .pwb-modal-body textarea { padding: 8px 10px; font-size: .88rem; border-radius: 7px; }
    .pwb-field { margin-bottom: 10px; }
    .pwb-row-2 { gap: 8px; }
    .pwb-season-info { padding: 6px 10px; font-size: .76rem; margin: -2px 0 10px; }
    .pwb-modal-body textarea { min-height: 60px; }
    .pwb-modal-foot { padding: 0 16px 16px; }
    .pwb-submit { padding: 12px 20px; font-size: .92rem; }
    .pwb-submit .pwb-ico { width: 28px; height: 28px; }
    .pwb-note { font-size: .72rem; margin: 6px 0 0; }
    .pwb-float { position: fixed; bottom: 10px; right: 10px; }
}
