/* RSVP Wedding - Frontend Styles
   Dibuat agar aman digunakan di dalam Elementor Container (flexbox based). */

.rsvpw-wrapper,
.rsvpw-wrapper * {
	box-sizing: border-box;
}

.rsvpw-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	font-family: inherit;
}

.rsvpw-form-box,
.rsvpw-list-box {
	flex: 1 1 320px;
	min-width: 280px;
}

/* ---------- Form ---------- */
.rsvpw-form {
	background: #fff;
	border: 1px solid #e5d9c9;
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rsvpw-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.rsvpw-field label {
	font-size: 14px;
	font-weight: 600;
	color: #3a3a3a;
}

.rsvpw-req {
	color: #c0392b;
}

.rsvpw-field input[type="text"],
.rsvpw-field select,
.rsvpw-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d8d0c4;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	background: #fdfcfa;
	color: #2c2c2c;
}

.rsvpw-field input[type="text"]:focus,
.rsvpw-field select:focus,
.rsvpw-field textarea:focus {
	outline: none;
	border-color: #b89b6c;
	box-shadow: 0 0 0 3px rgba(184, 155, 108, 0.15);
}

.rsvpw-field textarea {
	resize: vertical;
	min-height: 90px;
}

.rsvpw-hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rsvpw-submit-btn {
	appearance: none;
	border: none;
	cursor: pointer;
	background: #b89b6c;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 20px;
	border-radius: 8px;
	transition: background 0.2s ease, opacity 0.2s ease;
	width: 100%;
}

.rsvpw-submit-btn:hover {
	background: #a3875a;
}

.rsvpw-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rsvpw-alert {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
}

.rsvpw-alert.rsvpw-alert-success {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.rsvpw-alert.rsvpw-alert-error {
	background: #fdecea;
	color: #c62828;
	border: 1px solid #f5c6cb;
}

/* ---------- List ---------- */
.rsvpw-list-title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
}

.rsvpw-entries {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 480px;
	overflow-y: auto;
}

.rsvpw-empty {
	color: #888;
	font-style: italic;
	padding: 12px 0;
}

.rsvpw-entry {
	background: #fff;
	border: 1px solid #eee0cc;
	border-radius: 10px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rsvpw-entry-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

.rsvpw-entry-nama {
	font-weight: 700;
	font-size: 15px;
	color: #2c2c2c;
}

.rsvpw-badge {
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.rsvpw-badge-hadir {
	background: #e8f5e9;
	color: #2e7d32;
}

.rsvpw-badge-tidak {
	background: #fdecea;
	color: #c62828;
}

.rsvpw-badge-belum {
	background: #fff8e1;
	color: #f9a825;
}

.rsvpw-entry-ucapan {
	margin: 0;
	font-size: 14px;
	color: #4a4a4a;
	line-height: 1.5;
}

.rsvpw-entry-date {
	font-size: 12px;
	color: #a0a0a0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.rsvpw-wrapper {
		flex-direction: column;
		gap: 24px;
	}

	.rsvpw-entries {
		max-height: none;
	}
}
