.agm-form-wrapper {
	max-width: 700px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.agm-form-wrapper * {
	box-sizing: border-box;
}

#agm-registration-form {
	background: #ffffff;
	padding: 24px;
	border-radius: 10px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.agm-field {
	margin-bottom: 20px;
}

.agm-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 15px;
	color: #222;
}

.agm-required {
	color: #d63638;
}

.agm-field input[type="text"],
.agm-field input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	transition: border-color 0.15s ease;
}

.agm-field input[type="text"]:focus,
.agm-field input[type="email"]:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.agm-field input.agm-invalid {
	border-color: #d63638;
}

.agm-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.agm-radio-option {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 400 !important;
	cursor: pointer;
}

.agm-error {
	display: block;
	color: #d63638;
	font-size: 13px;
	margin-top: 4px;
	min-height: 16px;
}

.agm-guest-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.agm-guest-row .agm-field {
	flex: 1 1 0;
	min-width: 180px;
	margin-bottom: 12px;
}

.agm-guest-block {
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 20px;
	background: #fafafa;
}

.agm-guest-block h4 {
	margin-top: 0;
	margin-bottom: 12px;
	color: #1d2327;
}

.agm-fee-box {
	background: #fff8e5;
	border: 1px solid #f0c14b;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 20px;
}

.agm-fee-box h4 {
	margin-top: 0;
	margin-bottom: 10px;
}

.agm-fee-badge {
	display: inline-block;
	background: #2271b1;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	padding: 2px 10px;
	border-radius: 4px;
	margin-left: 6px;
}

.agm-fee-subline {
	margin: 0 0 6px 0;
	font-size: 14px;
	color: #50575e;
}

.agm-fee-box ul {
	margin: 0;
	padding-left: 20px;
}

.agm-fee-box li {
	font-size: 15px;
	margin-bottom: 4px;
}

.agm-bank-box {
	background: #eef6ff;
	border: 1px solid #b6d4f5;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 20px;
}

.agm-bank-box h4 {
	margin-top: 0;
	margin-bottom: 10px;
}

.agm-bank-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.agm-bank-table td {
	padding: 4px 0;
	vertical-align: top;
}

.agm-bank-table td:first-child {
	font-weight: 600;
	width: 45%;
	color: #1d2327;
}

.agm-submit-row {
	margin-bottom: 0;
}

#agm-submit-btn {
	background: #43459A;
	color: #fff;
	border: none;
	padding: 12px 28px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease;
}

#agm-submit-btn:hover {
	background: #F2A900;
}

#agm-submit-btn:disabled {
	background: #a7aaad;
	cursor: not-allowed;
}

.agm-form-message {
	margin-top: 16px;
	font-size: 14px;
}

.agm-form-message.agm-error-message {
	color: #d63638;
}

/* Success modal */
.agm-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

.agm-modal-content {
	background: #fff;
	max-width: 420px;
	width: 90%;
	padding: 32px 28px;
	border-radius: 10px;
	text-align: center;
	position: relative;
	animation: agm-pop-in 0.18s ease-out;
	max-height: 85vh;
	overflow-y: auto;
}

@keyframes agm-pop-in {
	from {
		transform: scale(0.92);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.agm-modal-content h3 {
	margin-top: 0;
	color: #1d2327;
	font-size: 22px;
}

.agm-popup-summary,
.agm-popup-bank {
	text-align: left;
	background: #f6f7f7;
	border-radius: 8px;
	padding: 12px 16px;
	margin-top: 14px;
}

.agm-popup-summary h4,
.agm-popup-bank h4 {
	margin: 0 0 8px 0;
	font-size: 15px;
	color: #1d2327;
}

#agm-popup-occupancy {
	margin: 0;
	font-weight: 600;
	color: #1d2327;
}

.agm-modal-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #666;
}

.agm-modal-ok {
	margin-top: 12px;
	background: #43459A;
	color: #fff;
	border: none;
	padding: 10px 24px;
	border-radius: 6px;
	font-size: 15px;
	cursor: pointer;
}

.agm-modal-ok:hover {
	background: #F2A900;
}

/* Responsive */
@media (max-width: 600px) {
	#agm-registration-form {
		padding: 16px;
	}

	.agm-radio-group {
		flex-direction: column;
		gap: 8px;
	}

	.agm-guest-row {
		flex-direction: column;
		gap: 0;
	}

	.agm-guest-row .agm-field {
		min-width: 100%;
	}
}
