/* ==========================================================================
   DIGIBOOK PRO - PUBLIC STYLES
   ========================================================================== */

:root {
    --dbp-primary: #ff6600;
    --dbp-primary-hover: #e65c00;
    --dbp-secondary: #23282d;
    --dbp-text: #333333;
    --dbp-light-bg: #f9f9f9;
    --dbp-border: #e2e2e2;
    --dbp-radius: 8px;
    --dbp-transition: all 0.3s ease;
}

.digibook-public-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--dbp-text);
    box-sizing: border-box;
}

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

.dbp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dbp-primary);
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: var(--dbp-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dbp-transition);
    text-decoration: none;
    letter-spacing: 0.5px;
}

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

.dbp-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

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

.dbp-req {
    color: #ff4d4d;
    font-weight: bold;
    margin-left: 3px;
}

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

.dbp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dbp-input-wrap {
    position: relative;
    width: 100%;
}

.dbp-deposit-notice {
    display: flex;
    align-items: center;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: var(--dbp-radius);
    margin-bottom: 20px;
    gap: 15px;
}

/* ==========================================================================
   CATERING SİHİRBAZI STİLLERİ
   ========================================================================== */
.dbp-wizard-steps { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }
.dbp-step { width: 40px; height: 40px; border-radius: 50%; background-color: var(--dbp-border); color: #666; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; transition: var(--dbp-transition); }
.dbp-step.active { background-color: var(--dbp-primary); color: #fff; box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3); }
.dbp-panel { display: none; animation: fadeIn 0.5s ease; }
.dbp-panel.active { display: block; }
.dbp-welcome-card { background: #fff; padding: 40px; border-radius: var(--dbp-radius); box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; max-width: 600px; margin: 0 auto; }
.dbp-big-input { width: 100%; padding: 15px; border: 1px solid var(--dbp-border); border-radius: var(--dbp-radius); font-size: 16px; margin-top: 8px; transition: var(--dbp-transition); }
.dbp-big-input:focus { border-color: var(--dbp-primary); outline: none; box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1); }
.dbp-category-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; justify-content: center; }
.dbp-cat-btn { background: #fff; border: 1px solid var(--dbp-border); padding: 10px 20px; border-radius: 30px; cursor: pointer; font-weight: 600; transition: var(--dbp-transition); }
.dbp-cat-btn.active, .dbp-cat-btn:hover { background: var(--dbp-secondary); color: #fff; border-color: var(--dbp-secondary); }
.dbp-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.dbp-product-card { background: #fff; border-radius: var(--dbp-radius); overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.05); border: 1px solid var(--dbp-border); transition: var(--dbp-transition); }
.dbp-product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.dbp-product-image { width: 100%; height: 180px; background-size: cover; background-position: center; background-color: #f1f1f1; }
.dbp-product-content { padding: 20px; text-align: center; }
.dbp-product-content h4 { margin: 0 0 10px 0; font-size: 18px; color: var(--dbp-secondary); }
.dbp-product-price { font-size: 20px; font-weight: bold; color: var(--dbp-primary); margin-bottom: 15px; }
.dbp-qty-control { display: flex; align-items: center; justify-content: center; gap: 15px; }
.dbp-qty-btn { width: 35px; height: 35px; border-radius: 50%; border: none; background: var(--dbp-light-bg); color: var(--dbp-text); font-size: 20px; cursor: pointer; transition: var(--dbp-transition); display: flex; align-items: center; justify-content: center; }
.dbp-qty-btn:hover { background: var(--dbp-primary); color: #fff; }
.dbp-qty-val { font-size: 18px; font-weight: bold; min-width: 20px; text-align: center; }
.dbp-summary-box { background: var(--dbp-light-bg); padding: 25px; border-radius: var(--dbp-radius); border: 1px solid var(--dbp-border); }
.dbp-summary-list { list-style: none; padding: 0; margin: 0 0 20px 0; }
.dbp-summary-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--dbp-border); }
.dbp-total-row { display: flex; justify-content: space-between; font-size: 22px; font-weight: bold; color: var(--dbp-secondary); padding-top: 15px; border-top: 2px solid var(--dbp-border); }
.dbp-input-group { margin-bottom: 20px; }

/* ==========================================================================
   NÜKLEER CSS RESET (TEMA EZMESİNE KARŞI KESİN ÇÖZÜM)
   ========================================================================== */
.digibook-booking-form .dbp-form-input {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    line-height: 50px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

.digibook-booking-form textarea.dbp-form-input {
    height: auto !important;
    min-height: 80px !important;
    max-height: none !important;
    line-height: 1.5 !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

/* ==========================================================================
   BOOKING - LAYOUT 1: SAYDAM TEMA 
   ========================================================================== */
.dbp-layout-1 .dbp-booking-container-layout1 { background: transparent; padding: 20px 0; color: #ffffff; }
.dbp-layout-1 label { display: none; }
.dbp-layout-1 .dbp-input-wrap { margin-bottom: 25px; }

.dbp-layout-1 .dbp-form-input {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    padding-left: 0 !important; 
}

.dbp-layout-1 .dbp-form-input:focus { border-bottom-color: #ffffff !important; outline: none !important; }
.dbp-layout-1 .dbp-form-input::placeholder { color: rgba(255, 255, 255, 0.7) !important; opacity: 1 !important; }
.dbp-layout-1 select.dbp-form-input option { background-color: var(--dbp-secondary) !important; color: #ffffff !important; padding: 10px !important; }
.dbp-layout-1 .dbp-input-wrap.has-error .dbp-form-input { border-bottom-color: #ff4d4d !important; }

.dbp-layout-1 .dbp-flex-inputs { display: flex; gap: 20px; }
.dbp-layout-1 .dbp-flex-inputs .dbp-input-wrap { flex: 1; margin-bottom: 0; }
.dbp-layout-1 .dbp-step-block { animation: fadeIn 0.4s ease; }
.dbp-layout-1 .dbp-form-actions { display: flex; justify-content: flex-end; align-items: center; margin-top: 15px; }

/* ==========================================================================
   BOOKING - LAYOUT 2 & 3: KLASİK BEYAZ ZEMİN (DOĞAL KUTU)
   ========================================================================== */
.dbp-layout-2 .dbp-form-input,
.dbp-layout-3 .dbp-form-input {
    border: 1px solid #dcdcdc !important;
    border-radius: var(--dbp-radius) !important;
    background-color: #fcfcfc !important;
    color: var(--dbp-text) !important;
}

.dbp-layout-2 .dbp-form-input:focus,
.dbp-layout-3 .dbp-form-input:focus {
    border-color: var(--dbp-primary) !important;
    background-color: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1) !important;
}

.dbp-layout-2 .dbp-input-wrap.has-error .dbp-form-input,
.dbp-layout-3 .dbp-input-wrap.has-error .dbp-form-input {
    border-color: #ff4d4d !important;
    background-color: #fffafa !important;
}

/* ==========================================================================
   BOOKING - LAYOUT 2: KLASİK PREMIUM TEMA ÖZEL
   ========================================================================== */
.dbp-layout-2 .dbp-booking-container { background: #ffffff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); overflow: hidden; padding: 40px; }
.dbp-layout-2 .dbp-booking-visual { text-align: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--dbp-border); }
.dbp-layout-2 .dbp-booking-visual h3 { font-size: 28px; color: var(--dbp-secondary); margin: 0 0 15px 0; }
.dbp-layout-2 .dbp-booking-visual p { color: #666; font-size: 16px; margin: 0; max-width: 600px; margin: 0 auto; }
.dbp-layout-2 label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dbp-secondary); font-size: 14px; }
.dbp-layout-2 .dbp-form-row { margin-bottom: 25px; }

/* ==========================================================================
   BOOKING - LAYOUT 3: GÖRSELLİ PREMIUM TEMA ÖZEL
   ========================================================================== */
.dbp-layout-3 .dbp-booking-container { display: flex; background: #ffffff; border-radius: 12px; box-shadow: 0 15px 50px rgba(0,0,0,0.1); overflow: hidden; min-height: 600px; }
.dbp-layout-3 .dbp-booking-image-side { flex: 1; background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; }
.dbp-layout-3 .dbp-booking-image-side::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0)); }
.dbp-layout-3 .dbp-booking-form { flex: 1.2; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.dbp-layout-3 label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dbp-secondary); font-size: 14px; }
.dbp-layout-3 .dbp-form-row { margin-bottom: 20px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.dbp-btn-loader { display: inline-block; margin-left: 10px; font-style: italic; opacity: 0.8; }

/* ==========================================================================
   RESPONSIVE UYUM (MOBİL & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
    .dbp-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .dbp-layout-3 .dbp-booking-container { flex-direction: column; }
    .dbp-layout-3 .dbp-booking-image-side { min-height: 300px; flex: none; }
    .dbp-layout-3 .dbp-booking-form { flex: none; padding: 40px 30px; }
}

@media (max-width: 768px) {
    .dbp-grid-2, .dbp-grid-3 { grid-template-columns: 1fr; gap: 15px; }
    .dbp-layout-1 .dbp-flex-inputs { flex-direction: column; gap: 0; }
    .dbp-layout-1 .dbp-input-wrap { margin-bottom: 25px; }
    .dbp-layout-2 .dbp-booking-container { padding: 25px; }
    .dbp-layout-3 .dbp-booking-form { padding: 30px 20px; }
    .dbp-welcome-card { padding: 25px; }
    .dbp-product-grid { grid-template-columns: 1fr; }
}