/***** AGENDAR CITA *****/
#appointment-schedule {
	background: #F4F8FB;
	padding: 50px 0 60px;
}

.schedule-intro {
	color: #343A40;
	line-height: 1.6;
	margin: 15px auto 0;
}

#schedule > div {
	width: 90%;
	max-width: 920px;
	margin: 0 auto;
	color: #343A40;
	font-size: 18px;
}

#schedule > div > label,
#hour-appointment > label {
	display: block;
	font-weight: 600;
	margin-bottom: 10px;
}

#calendar {
	display: flex;
	align-items: center;
	gap: 12px;
	width: fit-content;
	padding: 10px 16px;
	background: #005CA2;
	border: 1px solid #005CA2;
	border-radius: 6px;
}

#calendar img {
	width: 32px;
	filter: brightness(0) invert(1);
}

#date-appointment {
	border: 0;
	background: transparent;
	color: white;
	font: inherit;
	cursor: pointer;
}

#date-appointment::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }
#hour-appointment { padding-top: 35px; }
#hours { min-height: 48px; }

.available-hour {
	background: #005CA2;
	border: 1px solid #005CA2;
	border-radius: 5px;
	color: white;
	padding: 12px 18px;
	margin: 5px;
	cursor: pointer;
	font-size: 15px;
	transition: background-color .2s, border-color .2s;
}

.available-hour:hover { background: #004A82; border-color: #004A82; }

#background-schedule-appointment-form {
	position: fixed;
	inset: 0;
	background: rgba(38, 50, 56, .82);
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

#schedule-appointment-form {
	width: min(440px, 100%);
	max-height: 90vh;
	overflow-y: auto;
	box-sizing: border-box;
	background: white;
	color: #343A40;
	padding: 30px;
	border-top: 5px solid #00A6C7;
	border-radius: 8px;
}

#schedule-appointment-form h2 { color: #005CA2; margin-top: 0; }
#appointment-summary { color: #263238; font-weight: 600; }
#appointment-form label { display: block; margin: 14px 0 6px; font-weight: 600; }
#appointment-form [hidden] { display: none !important; }
#appointment-details { border: 0; padding: 0; margin: 0; min-width: 0; }
#appointment-card-payment { border-top: 1px solid #CFD8DC; margin-top: 18px; padding-top: 8px; }
#card-payment-title { color: #005CA2; font-size: 20px; }
.card-field-label { font-weight: 600; margin: 14px 0 6px; }
.card-field { height: 50px; width: 100%; min-width: 0; border: 1px solid #B0BEC5; border-radius: 4px; box-sizing: border-box; overflow: hidden; }
.card-field > * { display: block; width: 100%; height: 100%; }
.card-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card-field-row > div { min-width: 0; }
#appointment-payment-message { padding: 12px 0; color: #005CA2; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#appointment-payment-message.payment-error { color: #A12622; }
#appointment-form[aria-busy="true"] #appointment-card-fields { pointer-events: none; }
#card-pay-button { background: #007F78; color: white; }
#card-verify-button { background: #005CA2; color: white; }
.appointment-actions button:disabled { opacity: .6; cursor: wait; }
.appointment-actions button { min-width: 0; overflow-wrap: anywhere; }
#appointment-form input:not([type="hidden"]), #appointment-form textarea, #appointment-form select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #B0BEC5;
	border-radius: 4px;
	padding: 10px;
	font: inherit;
}
#appointment-form input:focus, #appointment-form textarea:focus, #appointment-form select:focus { outline: 2px solid #00A6C7; border-color: #005CA2; }
.payment-note { background: #F4F8FB; padding: 12px; font-size: 14px; }
.appointment-method-choice { border: 0; padding: 0; margin: 0 0 20px; }
.appointment-method-choice legend, .route-heading { color: #263238; font-weight: 700; margin-bottom: 10px; }
.appointment-method-choice label { display: inline-flex !important; align-items: center; gap: 8px; margin: 4px 12px 4px 0 !important; cursor: pointer; }
.appointment-method-choice input, .patient-type-choice input, .appointment-policies input { width: auto !important; padding: 0 !important; border: 0 !important; accent-color: #007F78; }
.patient-type-choice { border: 0; padding: 0; margin: 0 0 14px; }
.patient-type-choice legend { color: #263238; font-weight: 700; margin-bottom: 8px; }
.patient-type-choice label, .appointment-policies label { display: flex !important; align-items: flex-start; gap: 8px; cursor: pointer; }
.patient-type-choice input, .appointment-policies input { margin-top: 3px; }
.appointment-policies { font-size: 13px; line-height: 1.5; }
.appointment-policies p { margin: 12px 0; }
.appointment-route { margin-bottom: 18px; }
.payment-status-note { color: #343A40; font-size: 14px; line-height: 1.5; }
.convenio-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 18px; }
.convenio-option { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 66px; padding: 9px; border: 1px solid #B0BEC5; border-radius: 4px; background: #fff; color: #263238; text-align: left; cursor: pointer; }
.convenio-option[aria-pressed="true"] { border: 2px solid #007F78; background: #F1FAF8; }
.convenio-option img { width: 42px; height: 38px; object-fit: contain; flex: 0 0 42px; }
.convenio-option span { font-size: 14px; line-height: 1.3; }
.convenio-option small { font-size: 12px; }
.convenio-fields { border-top: 1px solid #CFD8DC; padding-top: 4px; }
.appointment-common { border-top: 1px solid #CFD8DC; padding-top: 4px; }
.appointment-actions { display: flex; gap: 10px; margin-top: 20px; }
.appointment-actions button { flex: 1; border: 0; border-radius: 4px; padding: 12px; cursor: pointer; font-weight: 600; }
#appointment-button { background: #005CA2; color: white; }
#appointment-button:hover { background: #004A82; }
#appointment-button:disabled { opacity: .6; cursor: wait; }
#appointment-back-button { background: #E7EEF3; color: #263238; }
#appointment-back-button:hover { background: #D7E2EA; }
.appointment-step { animation: appointment-step-in .18s ease-out; }
.appointment-step[hidden] { display: none !important; }

@keyframes appointment-step-in {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}
#cancel-appointment-button { background: #CFD8DC; color: #263238; }
#generate-appointment { display: none; align-items: center; gap: 10px; margin-top: 18px; }
#generate-appointment img { width: 35px; }

@media only screen and (max-width: 599px) {
	#appointment-schedule { padding: 35px 0; }
	#schedule > div { text-align: center; }
	#calendar { margin: 0 auto; }
	#date-appointment { max-width: 190px; font-size: 16px; }
	#hour-appointment { padding-top: 28px; }
	#schedule-appointment-form { padding: 24px 18px; }
	.appointment-actions { flex-direction: column; }
	.convenio-options { grid-template-columns: 1fr; }
}
