.my-calendar {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.my-calendar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    border: none;
    background: #333;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.calendar-header button:hover {
    opacity: 0.8;
}

.calendar-days,
.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-days div {
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
}

.calendar-dates div {
    text-align: center;
    padding: 12px 5px;
    border-radius: 8px;
    cursor: pointer;
}

.calendar-event-label {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #555555;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-dates div:hover {
    background: #eeeeee;
}

.calendar-dates div.selected {
    outline: 2px solid #333;
    outline-offset: 2px;
}

#calendar-selected-date {
    min-height: 1.5em;
    text-align: center;
    font-weight: bold;
}

.calendar-event-form {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.calendar-event-dialog {
    position: relative;
    width: min(100%, 500px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.calendar-event-form[hidden] {
    display: none;
}

.calendar-event-dialog h3 {
    margin: 0 0 20px;
    color: #333333;
    text-align: center;
}

.calendar-event-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #333333;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.calendar-event-close:hover {
    color: #777777;
}

.calendar-event-form form {
    display: grid;
    gap: 14px;
}

.calendar-event-form p {
    margin: 0;
}

.calendar-event-form label {
    display: inline-block;
    margin-bottom: 6px;
    color: #333333;
    font-size: 14px;
    font-weight: 700;
}

.calendar-event-form input,
.calendar-event-form textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding: 10px 12px;
    background: #ffffff;
    color: #333333;
    font: inherit;
}

.calendar-event-form textarea {
    min-height: 90px;
    resize: vertical;
}

.calendar-event-form input:focus,
.calendar-event-form textarea:focus {
    border-color: #333333;
    outline: 2px solid rgba(51, 51, 51, 0.2);
    outline-offset: 1px;
}

.calendar-event-form button {
    border: 0;
    border-radius: 6px;
    padding: 11px 16px;
    background: #333333;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.calendar-event-form button:hover {
    background: #555555;
}

body.calendar-modal-open {
    overflow: hidden;
}

.my-contact-form {
    max-width: 520px;
}

.my-contact-form form {
    display: grid;
    gap: 14px;
}

.my-contact-form p {
    margin: 0;
}

.my-contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.my-contact-form input,
.my-contact-form textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
}

.my-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.my-contact-form button {
    border: 0;
    border-radius: 6px;
    padding: 11px 16px;
    background: #333333;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.my-contact-form button:hover {
    background: #555555;
}

.my-contact-form-success {
    padding: 12px;
    border-left: 4px solid #2e7d32;
    background: #edf7ed;
}

.brew-reservation {
    max-width: 620px;
    margin: 32px auto;
}

.brew-reservation-trigger {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 7px;
    padding: 14px 18px;
    background: #333333;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    text-align: center;
    transition: background 160ms ease, transform 160ms ease;
}

.brew-reservation-trigger::-webkit-details-marker {
    display: none;
}

.brew-reservation-trigger::after {
    content: '+';
    float: right;
    font-size: 20px;
    line-height: 16px;
}

.brew-reservation[open] .brew-reservation-trigger::after {
    content: '\2212';
}

.brew-reservation-trigger:hover {
    background: #555555;
}

.brew-reservation-trigger:active {
    transform: translateY(1px);
}

.brew-reservation-form {
    max-width: 620px;
    margin-top: 12px;
    padding: 28px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.brew-reservation-form form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.brew-reservation-form p {
    margin: 0;
}

.brew-reservation-form p:nth-last-child(2),
.brew-reservation-form p:last-child {
    grid-column: 1 / -1;
}

.brew-reservation-form label {
    display: block;
    margin-bottom: 6px;
    color: #333333;
    font-weight: 700;
}

.brew-reservation-form input,
.brew-reservation-form textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #cfcfcf;
    border-radius: 7px;
    padding: 12px 13px;
    background: #fafafa;
    color: #222222;
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.brew-reservation-form textarea {
    min-height: 90px;
    resize: vertical;
}

.brew-reservation-form input:focus,
.brew-reservation-form textarea:focus {
    border-color: #333333;
    outline: 0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.12);
}

.brew-reservation-form button {
    border: 0;
    width: 100%;
    border-radius: 7px;
    padding: 13px 18px;
    background: #333333;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: background 160ms ease, transform 160ms ease;
}

.brew-reservation-form button:hover {
    background: #555555;
}

.brew-reservation-form button:active {
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .brew-reservation-form {
        margin: 20px 0;
        padding: 20px 16px;
    }

    .brew-reservation-form form {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .brew-reservation-form p:nth-last-child(2),
    .brew-reservation-form p:last-child {
        grid-column: auto;
    }

    .calendar-event-dialog {
        padding: 24px 16px 16px;
    }
}

.calendar-dates div.today {
    border: 2px solid #333333;
    background: transparent;
    color: inherit;
    font-weight: bold;
}

.calendar-dates div.today:hover {
    background: #eeeeee;
}

.calendar-dates div.today .calendar-event-label {
    color: #555555;
}