/**
 * DigiBook Pro Public Styles
 * Updated: High Contrast & Responsive Fixes
 */

:root {
    --dbp-primary: #ff6600;
    --dbp-primary-dark: #e65c00;
    --dbp-secondary: #222222; /* Darker for better contrast */
    --dbp-bg: #f8f9fa;
    --dbp-card-bg: #ffffff;
    --dbp-text: #2c3e50; /* Dark blue-grey for readability */
    --dbp-text-light: #555555; /* Darker than before */
    --dbp-border: #dcdcdc;
    --dbp-radius: 16px;
    --dbp-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --dbp-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.digibook-public-wrapper {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--dbp-text);
    box-sizing: border-box;
}

.digibook-public-wrapper * {
    box-sizing: border-box;
}

/* --- TITLES & HEADERS --- */
.digibook-public-wrapper h1,
.digibook-public-wrapper h2,
.digibook-public-wrapper h3,
.digibook-public-wrapper h4 {
    color: var(--dbp-secondary) !important;
    font-weight: 800;
    line-height: 1.3;
}

/* WIZARD & CATERING */
.dbp-wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.dbp-wizard-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.dbp-step {
    position: relative;
    z-index: 1;
    background: #fff; /* Ensure white bg */
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dbp-text-light);
    border: 3px solid #e0e0e0;
    transition: var(--dbp-transition);
}

.dbp-step.active {
    background: var(--dbp-primary);
    border-color: var(--dbp-primary);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(255, 102, 0, 0.2);
}

.dbp-step.completed {
    background: var(--dbp-primary);
    border-color: var(--dbp-primary);
    color: #fff;
}

.dbp-panel {
    display: none;
    animation: dbpSlideUp 0.5s ease;
}

.dbp-panel.active {
    display: block;
}

@keyframes dbpSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dbp-welcome-card {
    background: var(--dbp-card-bg);
    padding: 50px;
    border-radius: var(--dbp-radius);
    text-align: center;
    box-shadow: var(--dbp-shadow);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #eee;
}

.dbp-input-group {
    margin: 30px 0;
}

/* Inputs & Labels */
.dbp-form-row label, 
.dbp-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #111 !important; /* Force black */
}

.dbp-big-input, .dbp-form-input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    color: #333 !important; /* Dark text */
    background: #fff !important;
    border: 2px solid var(--dbp-border);
    border-radius: 8px;
    outline: none;
    transition: var(--dbp-transition);
}

.dbp-big-input {
    text-align: center;
    font-size: 20px;
}

.dbp-big-input:focus, .dbp-form-input:focus {
    border-color: var(--dbp-primary);
}

/* Category & Products */
.dbp-category-nav {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 30px;
    scrollbar-width: thin;
}

.dbp-cat-btn {
    padding: 12px 25px;
    border-radius: 30px;
    background: #f1f1f1; /* Light grey bg for visibility */
    color: #333; /* Dark text */
    border: 1px solid #ccc;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--dbp-transition);
    font-weight: 700;
}

.dbp-cat-btn.active, .dbp-cat-btn:hover {
    background: var(--dbp-primary);
    color: #fff;
    border-color: var(--dbp-primary);
}

.dbp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.dbp-product-card {
    background: #fff;
    border-radius: var(--dbp-radius);
    overflow: hidden;
    box-shadow: var(--dbp-shadow);
    transition: var(--dbp-transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.dbp-product-card.selected {
    border-color: var(--dbp-primary);
}

.dbp-prod-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.dbp-prod-details {
    padding: 20px;
}

.dbp-prod-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #222 !important;
    font-weight: 700;
}

.dbp-prod-price {
    font-size: 16px;
    color: var(--dbp-primary) !important;
    font-weight: 800;
}

/* Summary Box */
.dbp-summary-box {
    background: #fff;
    padding: 30px;
    border-radius: var(--dbp-radius);
    box-shadow: var(--dbp-shadow);
    border: 1px solid #eee;
}

.dbp-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    color: #333;
}

.dbp-total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    font-size: 24px;
    font-weight: 800;
    color: var(--dbp-secondary);
}

/* BOOKING FORM */
.dbp-booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: var(--dbp-radius);
    overflow: hidden;
    box-shadow: var(--dbp-shadow);
}

.dbp-booking-visual {
    background: linear-gradient(135deg, var(--dbp-secondary), #1a1e22);
    padding: 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dbp-booking-visual h3, .dbp-booking-visual p, .dbp-booking-visual strong {
    color: #fff !important;
}

.dbp-booking-form {
    padding: 40px;
}

.dbp-form-row {
    margin-bottom: 20px;
}

.dbp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dbp-req { color: red; margin-left: 2px; }

.dbp-deposit-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #c46e00;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    display: flex;
    gap: 10px;
}

.dbp-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--dbp-primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--dbp-transition);
    text-align: center;
    width: auto;
}

.dbp-btn-block {
    width: 100%;
    display: block;
}

/* RESPONSIVE */
@media screen and (max-width: 900px) {
    .dbp-booking-container {
        grid-template-columns: 1fr;
    }
    .dbp-booking-visual {
        padding: 30px;
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    .dbp-grid-2 {
        grid-template-columns: 1fr;
    }
    .dbp-product-grid {
        grid-template-columns: 1fr;
    }
    .dbp-welcome-card, .dbp-booking-form {
        padding: 20px;
    }
    .dbp-total-row {
        font-size: 20px;
    }
}