/* Booking Price Calculator — frontend styles
   Designed to inherit the host theme's font and feel neutral enough
   to drop into any Elementor page. */

.bpc-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.bpc-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bpc-title {
    margin: 0 0 8px;
    font-size: 1.6em;
    line-height: 1.2;
}

.bpc-intro {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 0.95em;
}

.bpc-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bpc-field {
    display: flex;
    flex-direction: column;
}

.bpc-label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #111827;
}

.bpc-required {
    color: #dc2626;
}

.bpc-form input[type="text"],
.bpc-form input[type="email"],
.bpc-form input[type="tel"],
.bpc-form select,
.bpc-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    background: #fff;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.bpc-form input:focus,
.bpc-form select:focus,
.bpc-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.bpc-form textarea {
    resize: vertical;
    min-height: 90px;
}

.bpc-radio-group,
.bpc-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bpc-radio,
.bpc-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-size: 0.95em;
}

.bpc-radio:hover,
.bpc-checkbox:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.bpc-radio input,
.bpc-checkbox input {
    margin: 0;
    flex-shrink: 0;
}

.bpc-radio input:checked ~ span,
.bpc-checkbox input:checked ~ span {
    font-weight: 600;
}

.bpc-radio:has(input:checked),
.bpc-checkbox:has(input:checked) {
    background: #eff6ff;
    border-color: #2563eb;
}

.bpc-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 28px 0 20px;
    padding: 18px 22px;
    background: #111827;
    color: #fff;
    border-radius: 10px;
}

.bpc-total-label {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.bpc-total-amount {
    font-size: 1.6em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.bpc-submit {
    width: 100%;
    padding: 14px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}

.bpc-submit:hover:not(:disabled) {
    background: #1d4ed8;
}

.bpc-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.bpc-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bpc-message {
    margin-top: 16px;
    padding: 0;
    font-size: 0.95em;
    min-height: 1.4em;
}

.bpc-message.bpc-success {
    padding: 12px 16px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
}

.bpc-message.bpc-error {
    padding: 12px 16px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

@media (max-width: 520px) {
    .bpc-form { padding: 20px; }
    .bpc-total-amount { font-size: 1.3em; }
}
