* { box-sizing: border-box; }

.kyd-booking-wrapper {
    max-width: 960px;
    margin: 20px auto;
    padding: 10px;
}

.kyd-booking-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    overflow: hidden;
}

.kyd-booking-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.kyd-booking-card p {
    margin: 0 0 16px;
    color: #555;
}

.kyd-price-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 14px;
}

.kyd-price-box h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.kyd-price-box ul {
    margin: 0 0 8px 18px;
    padding: 0;
}

.kyd-price-box li {
    margin: 0 0 4px;
}

.kyd-note {
    font-size: 13px;
    color: #334155;
    margin: 4px 0 0;
}

.kyd-note-red {
    color: #b91c1c;
    font-weight: 600;
}

.kyd-field {
    margin-bottom: 14px;
    width: 100%;
}

.kyd-field-full {
    grid-column: 1 / -1;
}

.kyd-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.kyd-field input,
.kyd-field select,
#kyd_booking_date {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px; /* iPhone Zoom Fix */
    line-height: 1.2;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}

.kyd-field input:focus,
.kyd-field select:focus,
#kyd_booking_date:focus {
    outline: none;
    border-color: #4F012A;
    box-shadow: 0 0 0 3px rgba(79, 1, 42, 0.12);
}

#kyd_booking_date {
    position: relative;
    overflow: hidden;
}

.kyd-field small {
    display: block;
    color: #666;
    margin-top: 4px;
    line-height: 1.3;
}

.kyd-slots-section {
    margin-top: 8px;
}

.kyd-slots-section > label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.kyd-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.kyd-slot-btn {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    min-height: 58px;
    transition: all .18s ease;
}

.kyd-slot-btn:hover {
    border-color: #4F012A;
    box-shadow: 0 4px 10px rgba(79, 1, 42, 0.10);
}

.kyd-slot-btn.active {
    background: #4F012A;
    color: #fff;
    border-color: #4F012A;
    box-shadow: 0 6px 16px rgba(79, 1, 42, 0.22);
}

.kyd-slot-btn .kyd-slot-sub {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    opacity: .9;
}

.kyd-info {
    grid-column: 1 / -1;
    color: #666;
    padding: 8px 0;
    line-height: 1.4;
}

.kyd-form {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    scroll-margin-top: 80px;
}

.kyd-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.kyd-btn {
    margin-top: 10px;
    padding: 14px 16px;
    background: #4F012A;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    font-size: 16px;
    line-height: 1.2;
    box-shadow: 0 8px 20px rgba(79, 1, 42, 0.28);
    transition: all .2s ease;
}

.kyd-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(79, 1, 42, 0.35);
    opacity: 1;
}

.kyd-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(79, 1, 42, 0.22);
}

.kyd-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
}

#kyd_booking_message {
    margin-top: 14px;
    padding: 14px;
    border-radius: 10px;
    display: none;
    line-height: 1.5;
    font-size: 15px;
    word-break: break-word;
    scroll-margin-top: 80px;
}

#kyd_booking_message.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#kyd_booking_message.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

#kyd_booking_message a {
    display: inline-block;
    margin-top: 6px;
    text-decoration: underline;
    color: inherit;
}

.kyd-msg-actions {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .kyd-booking-wrapper {
        padding: 8px;
        margin: 10px auto;
    }

    .kyd-booking-card {
        padding: 14px;
        border-radius: 14px;
    }

    .kyd-booking-card h2 {
        font-size: 20px;
    }

    .kyd-booking-card p {
        font-size: 14px;
        line-height: 1.35;
    }

    .kyd-form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .kyd-field-full {
        grid-column: auto;
    }

    .kyd-slots-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .kyd-slot-btn {
        font-size: 15px;
        min-height: 54px;
        padding: 12px;
    }

    .kyd-field input,
    .kyd-field select,
    #kyd_booking_date,
    .kyd-btn {
        font-size: 16px !important;
    }
}

/* Theme-Buttons (z. B. Cornerstone/Pro) überschreiben */
.kyd-booking-wrapper .kyd-booking-card .kyd-btn,
.kyd-booking-wrapper .kyd-booking-card button.kyd-btn,
.kyd-booking-wrapper .kyd-booking-card button[type="submit"].kyd-btn {
    background: #4F012A !important;
    background-color: #4F012A !important;
    background-image: none !important;
    border: 1px solid #4F012A !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(79, 1, 42, 0.28) !important;
    text-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.kyd-booking-wrapper .kyd-booking-card .kyd-btn:hover,
.kyd-booking-wrapper .kyd-booking-card button.kyd-btn:hover,
.kyd-booking-wrapper .kyd-booking-card button[type="submit"].kyd-btn:hover {
    background: #650237 !important;
    background-color: #650237 !important;
    background-image: none !important;
    border-color: #650237 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(79, 1, 42, 0.35) !important;
    text-shadow: none !important;
}

.kyd-booking-wrapper .kyd-booking-card .kyd-btn:active,
.kyd-booking-wrapper .kyd-booking-card button.kyd-btn:active,
.kyd-booking-wrapper .kyd-booking-card button[type="submit"].kyd-btn:active {
    background: #430123 !important;
    background-color: #430123 !important;
    background-image: none !important;
    border-color: #430123 !important;
    box-shadow: 0 5px 14px rgba(79, 1, 42, 0.22) !important;
}

.kyd-booking-wrapper .kyd-booking-card .kyd-btn:disabled,
.kyd-booking-wrapper .kyd-booking-card button.kyd-btn:disabled,
.kyd-booking-wrapper .kyd-booking-card button[type="submit"].kyd-btn:disabled {
    background: #4F012A !important;
    background-color: #4F012A !important;
    background-image: none !important;
    border-color: #4F012A !important;
    color: #ffffff !important;
    opacity: .6;
    box-shadow: none !important;
}