/**
 * Kayarine Booking Styles (Modern Card Design)
 */

/* =========================================
   Wrapper & Layout
   ========================================= */
.kayarine-booking-card {
    margin: 24px 0;
    padding: 24px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.kb-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3182ce;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Date Picker Group */
.kb-field-group {
    margin-bottom: 1.5rem;
}

.kb-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.kb-date-input-wrapper {
    position: relative;
}

.kb-input-date {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background-color: #f8fafc;
}

.kb-input-date:focus {
    border-color: #3182ce;
    outline: none;
    background-color: #fff;
}

/* =========================================
   Add-ons Section
   ========================================= */
.kb-addons-wrapper {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #cbd5e0;
}

.kb-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.kb-addon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    transition: background 0.2s;
}

.kb-addon-row:hover {
    background: #ebf8ff;
    border-color: #bee3f8;
}

.kb-addon-info {
    display: flex;
    flex-direction: column;
}

.kb-addon-name {
    font-weight: 600;
    color: #2d3748;
}

.kb-addon-price {
    font-size: 0.875rem;
    color: #718096;
}

/* Quantity Control (+/-) */
.kb-qty-control {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.kb-qty-btn {
    border: none;
    background: #f7fafc;
    color: #4a5568;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kb-qty-btn:hover {
    background: #e2e8f0;
}

.kb-addon-qty {
    width: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    color: #2d3748;
    -moz-appearance: textfield;
}

.kb-addon-qty::-webkit-outer-spin-button,
.kb-addon-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =========================================
   Price Summary
   ========================================= */
.kb-price-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #2d3748;
    border-radius: 8px;
    color: white;
}

.kb-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kb-summary-label {
    font-size: 1.1rem;
    font-weight: 500;
}

.kb-summary-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #48bb78; /* Green for money */
}

/* Loading State */
#kb-loading-spinner {
    font-size: 0.8em;
    color: #a0aec0;
    margin-top: 5px;
    text-align: right;
}

/* =========================================
   Unified Booking Page Grid Layout
   ========================================= */
.kb-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.kb-item-row {
    background: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
}

.kb-item-row:hover {
    border-color: #3182ce;
    background: #ebf8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.kb-item-info {
    margin-bottom: 12px;
}

.kb-item-name {
    display: block;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}

.kb-item-price-hint {
    font-size: 0.85rem;
    color: #718096;
}

/* Submit Button */
.kb-submit-button {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.kb-submit-button:hover {
    background: #2c5282;
}

.kb-submit-button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.kb-section {
    margin-bottom: 30px;
}
