/* =============================================================
   Rijuna Wedding — RSVP Widget Layout CSS
   Layout dasar saja. Warna & font dikontrol via Elementor.
   ============================================================= */

/* ── Wrapper ─────────────────────────────────────────────── */
.rsvp-widget-wrapper {
	width: 100%;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

/* ── Form Container ──────────────────────────────────────── */
.rsvp-form-wrapper {
	width: 100%;
	box-sizing: border-box;
}

.rsvp-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ── Field ───────────────────────────────────────────────── */
.rsvp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rsvp-field-row {
	display: flex;
	gap: 16px;
}

.rsvp-field-half {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.rsvp-field-label {
	display: block;
}

.rsvp-required {
	color: red;
}

/* ── Input / Select / Textarea ───────────────────────────── */
.rsvp-input,
.rsvp-select,
.rsvp-textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 0 solid transparent;
	background-color: #EAF0FA;
	font-size: inherit;
	font-family: inherit;
	line-height: 1.5;
	outline: none;
	transition: opacity 0.2s;
	appearance: none;
	-webkit-appearance: none;
}

/* Native select arrow */
.rsvp-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B7BB8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.rsvp-input:focus,
.rsvp-select:focus,
.rsvp-textarea:focus {
	opacity: 0.85;
}

.rsvp-textarea {
	resize: vertical;
	min-height: 96px;
}

/* ── Tombol Kirim ────────────────────────────────────────── */
.rsvp-submit-btn {
	display: inline-block;
	padding: 11px 28px;
	border: none;
	cursor: pointer;
	font-size: inherit;
	font-family: inherit;
	font-weight: 600;
	line-height: 1.5;
	transition: background-color 0.2s, color 0.2s, opacity 0.2s;
	box-sizing: border-box;
	background-color: #4169C8;
	color: #ffffff;
}

.rsvp-submit-btn.rsvp-btn-full {
	width: 100%;
	text-align: center;
}

.rsvp-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* ── Pesan Sukses / Error ────────────────────────────────── */
.rsvp-message {
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 0.9em;
	line-height: 1.5;
}

.rsvp-message.success {
	background-color: #d4edda;
	color: #155724;
}

.rsvp-message.error {
	background-color: #f8d7da;
	color: #721c24;
}

/* ── List Wrapper ────────────────────────────────────────── */
.rsvp-list-wrapper {
	width: 100%;
	box-sizing: border-box;
	margin-top: 24px;
}

/* ── Header UCAPAN & DOA ─────────────────────────────────── */
.rsvp-ucapan-header {
	text-align: center;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 14px;
	color: rgba(255, 255, 255, 0.55);
}

/* ── Judul list + badge total ────────────────────────────── */
.rsvp-list-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.rsvp-list-title {
	font-weight: 600;
	font-size: 15px;
	color: #ffffff;
}

.rsvp-count-badge {
	font-size: 12px;
	font-weight: 500;
	padding: 4px 12px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	white-space: nowrap;
}

/* ── Scroll Container ────────────────────────────────────── */
.rsvp-list-scroll {
	overflow-y: auto;
	max-height: 420px;
	/* Smooth scrolling */
	scroll-behavior: smooth;
	/* Custom scrollbar */
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.rsvp-list-scroll::-webkit-scrollbar {
	width: 4px;
}

.rsvp-list-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.rsvp-list-scroll::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.25);
	border-radius: 999px;
}

/* ── Item List ───────────────────────────────────────────── */
.rsvp-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	/* Sedikit padding kanan agar scrollbar tidak nutup konten */
	padding-right: 4px;
}

.rsvp-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
	padding: 14px 16px;
	background-color: #ffffff;
	border-radius: 12px;
}

.rsvp-item-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	flex-wrap: wrap;
}

.rsvp-item-nama {
	font-weight: 600;
	font-size: 14px;
	color: #2D3B6E;
}

/* ── Status Badge (pill) ─────────────────────────────────── */
.rsvp-item-status {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	flex-shrink: 0;
}

.rsvp-item-status.hadir {
	background-color: #DCFCE7;
	color: #166534;
}

.rsvp-item-status.tidak {
	background-color: #FEE2E2;
	color: #991B1B;
}

.rsvp-item-status.ragu {
	background-color: #FEF9C3;
	color: #854D0E;
}

/* ── Pesan (italic + warna) ──────────────────────────────── */
.rsvp-item-pesan {
	font-style: italic;
	font-size: 13px;
	line-height: 1.6;
	color: #4169C8;
}

/* ── Tanggal ─────────────────────────────────────────────── */
.rsvp-item-tanggal {
	font-size: 11px;
	color: #9CA3AF;
}

/* ── Empty State ─────────────────────────────────────────── */
.rsvp-empty {
	padding: 16px;
	text-align: center;
	box-sizing: border-box;
	color: rgba(255, 255, 255, 0.70);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
	.rsvp-field-row {
		flex-direction: column;
	}

	.rsvp-item-header {
		flex-direction: column;
		align-items: flex-start;
	}
}
