/* =========================================================
   REGIMA APPOINTMENTS — Frontend stiliai (/kontaktai/ formai)
   Spalvos: pagrindinė #005d7a, akcentas #118193, šviesi #c8e3ec
   ========================================================= */

/* Paslepiame "Pageidaujama paslauga" lauką - jis nereikalingas */
#rg-paslauga,
label[for="rg-paslauga"],
.form-group:has(#rg-paslauga) {
	display: none !important;
}

/* Pasirinktos datos eilutė virš kalendoriaus */
.rga-picked {
	font-size: 13px;
	color: #6b7c93;
	margin: 6px 0 8px;
	font-weight: 500;
}
.rga-picked.has-value { color: #005d7a; font-weight: 600; }

/* === KALENDORIAUS WRAPPER === */
.rga-cal-wrap {
	display: inline-block;
	width: 100%;
	max-width: 320px;
	background: #fff;
	border: 1px solid #c8e3ec;
	border-radius: 12px;
	padding: 14px 14px 12px;
	box-shadow: 0 4px 14px rgba(0,93,122,.08);
	font-family: inherit;
	box-sizing: border-box;
}

/* Antraštė: rodyklės + mėnuo */
.rga-cal-header {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 10px;
}
.rga-cal-title {
	font-size: 15px; font-weight: 600; color: #005d7a;
	flex: 1; text-align: center; text-transform: capitalize;
}
.rga-cal-nav {
	width: 32px; height: 32px;
	border: 1px solid #c8e3ec; background: #fff;
	border-radius: 8px; cursor: pointer;
	font-size: 18px; color: #005d7a;
	transition: background .15s ease;
}
.rga-cal-nav:hover { background: #f0f8fb; }

/* Savaitės dienos antraštė */
.rga-cal-weekdays {
	display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
	margin-bottom: 4px;
}
.rga-cal-weekdays > div {
	text-align: center; font-size: 11px; color: #6b7c93;
	font-weight: 600; text-transform: uppercase; letter-spacing: .3px; padding: 6px 0;
}

/* Datų tinklas */
.rga-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rga-cal-cell {
	aspect-ratio: 1 / 1;
	display: flex; align-items: center; justify-content: center;
	border: none; background: transparent; border-radius: 8px;
	font-size: 13px; font-weight: 500; color: #2a3a4a;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, transform .1s ease;
	font-family: inherit; padding: 0;
}
.rga-cal-cell.rga-cal-empty { visibility: hidden; cursor: default; }
.rga-cal-cell.is-past, .rga-cal-cell.is-closed { color: #c4cdd5; cursor: not-allowed; background: transparent; }
.rga-cal-cell.is-open {
	background: #d6f0f0; color: #005d7a; font-weight: 600;
}
.rga-cal-cell.is-open:hover {
	background: #a8dee0; color: #003c4f; transform: scale(1.05);
}
.rga-cal-cell.is-selected {
	background: #005d7a !important; color: #fff !important;
	box-shadow: 0 4px 10px rgba(0,93,122,.35);
}
.rga-cal-cell.is-today { outline: 2px solid #c8e3ec; }

/* Laiko select'as */
#rg-laikas { border-radius: 8px; border-color: #c8e3ec; }
#rg-laikas:focus { outline: 2px solid #118193; outline-offset: 1px; }

/* Pranešimų dėžutė */
.rga-msg { display: none; padding: 12px 16px; border-radius: 8px;
	margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.rga-msg-success { display: block; background: #e0f5e8; color: #1e7d3a; border: 1px solid #b8e5c4; }
.rga-msg-error   { display: block; background: #fde7e7; color: #b32424; border: 1px solid #f5b8b8; }
.rga-msg-info    { display: block; background: #e8f1f8; color: #005d7a; border: 1px solid #c8e3ec; }

@media (max-width: 600px) { .rga-cal-wrap { max-width: 100%; } }
