/* Trigger button — renders inside the animal detail action area */
.gchs-appt-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin-top: 12px;
    background: #b45309;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}
.gchs-appt-trigger:hover, .gchs-appt-trigger:focus {
    background: #92400e;
}

/* Modal overlay */
.gchs-appt-modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.6);
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}
.gchs-appt-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease, visibility 0s linear 0s;
}

.gchs-appt-dialog {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    padding: 24px 28px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.gchs-appt-modal.is-open .gchs-appt-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .gchs-appt-modal,
    .gchs-appt-modal .gchs-appt-dialog {
        transition: none;
    }
    .gchs-appt-dialog {
        transform: none;
    }
}

.gchs-appt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.gchs-appt-close:hover { background: #f4f5f7; }

.gchs-appt-dialog h2 {
    margin: 0 0 4px;
    color: #1e3550;
    font-size: 22px;
}
.gchs-appt-dialog p.gchs-appt-lede {
    margin: 0 0 16px;
    color: #555;
    font-size: 14px;
}

.gchs-appt-form label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 13px;
    color: #1e3550;
}
.gchs-appt-form input,
.gchs-appt-form select,
.gchs-appt-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.gchs-appt-form textarea { resize: vertical; min-height: 60px; }

.gchs-appt-form .gchs-appt-note {
    font-weight: 400;
    color: #6b7280;
    font-size: 12px;
    margin-left: 4px;
}

/* Checkbox groups (topics, sessions) inside appointment/education modals */
.gchs-appt-form fieldset.gchs-appt-checks {
    margin: 12px 0 0;
    padding: 10px 12px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    min-width: 0;
}
.gchs-appt-form fieldset.gchs-appt-checks legend {
    padding: 0 6px;
    margin-left: 4px;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    color: #1e3550;
    line-height: 1.2;
}
.gchs-appt-form label.gchs-appt-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 0;
    font-weight: 400;
    font-size: 14px;
    color: #222;
    cursor: pointer;
    line-height: 1.3;
}
.gchs-appt-form label.gchs-appt-check + label.gchs-appt-check {
    margin-top: 2px;
}
.gchs-appt-form label.gchs-appt-check input[type="checkbox"],
.gchs-appt-form label.gchs-appt-check input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: #1e3550;
}
.gchs-appt-form label.gchs-appt-check span {
    flex: 1;
}

/* Inline hint shown when user picks a weekend and we auto-bump the date. */
.gchs-appt-hint {
    margin: 6px 0 0;
    padding: 6px 10px;
    background: #fff7ed;
    color: #b45309;
    border-left: 3px solid #b45309;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.2s ease, padding 0.2s ease, margin 0.2s ease;
}
.gchs-appt-hint.is-visible {
    opacity: 1;
    max-height: 80px;
    padding: 6px 10px;
    margin: 6px 0 0;
}
.gchs-appt-hint:not(.is-visible) {
    padding: 0 10px;
    margin: 0;
}
.gchs-appt-form .gchs-appt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
@media (max-width: 480px) {
    .gchs-appt-form .gchs-appt-row { grid-template-columns: 1fr; }
}
.gchs-appt-submit {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: #1e3550;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.gchs-appt-submit:hover:not(:disabled) { background: #0f2236; }
.gchs-appt-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.gchs-appt-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}
.gchs-appt-status:empty { display: none; }
.gchs-appt-status--info    { background: #e0f2fe; color: #075985; }
.gchs-appt-status--success { background: #dcfce7; color: #166534; }
.gchs-appt-status--error   { background: #fee2e2; color: #991b1b; }
