/**
 * Pra Pendaftaran SWIMS – form page styles
 */

#pra-pendaftaran-section {
	padding: 0 0 60px;
	max-width: 640px;
}

#pra-pendaftaran-section .headline {
	font-size: 1.35em;
	line-height: 1.3;
}

#pra-pendaftaran-section .section-intro {
	color: #5a6c7d;
	margin-bottom: 28px;
	line-height: 1.5;
}

.pra-form .form-row {
	margin-bottom: 22px;
}

.pra-form label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: #2c3e50;
	margin-bottom: 6px;
}

.pra-form label .required {
	color: #c0392b;
	margin-left: 2px;
}

.pra-form input[type="text"],
.pra-form input[type="email"],
.pra-form input[type="tel"],
.pra-form select {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	font-size: 14px;
	color: #2c3e50;
	border: 1px solid #dde1e5;
	border-radius: 4px;
	box-sizing: border-box;
	transition: border-color 0.2s;
	background: #fff;
}

.pra-form select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6c7d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}

.pra-form input:focus,
.pra-form select:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
}

.pra-form input::placeholder {
	color: #5a6c7d;
}

.pra-disclaimer-block {
	margin-top: 8px;
	margin-bottom: 24px;
	padding: 18px 20px;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 6px;
}

.pra-disclaimer-text {
	color: #2c3e50;
	font-size: 13px;
	line-height: 1.6;
	margin-bottom: 14px;
}

.pra-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	color: #2c3e50;
}

.pra-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	cursor: pointer;
}

.pra-form .form-actions {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #ecf0f1;
}

.pra-form .btn-submit {
	display: inline-block;
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #2c3e50;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
}

.pra-form .btn-submit:hover {
	background: #34495e;
}

.pra-form .btn-submit:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.3);
}

/* Modals */
.pra-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
	box-sizing: border-box;
}

.pra-modal-overlay[hidden] {
	display: none;
}

.pra-modal {
	background: #fff;
	border-radius: 8px;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	padding: 24px;
}

.pra-modal-title {
	margin: 0 0 16px;
	font-size: 1.2em;
	color: #2c3e50;
}

.pra-modal-title-error {
	color: #c0392b;
}

.pra-modal-text {
	margin: 0 0 24px;
	color: #2c3e50;
	line-height: 1.6;
	font-size: 14px;
}

.pra-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.pra-modal-actions .btn-submit {
	margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
	#pra-pendaftaran-section {
		padding: 0 0 40px;
		padding-left: env(safe-area-inset-left, 0);
		padding-right: env(safe-area-inset-right, 0);
	}

	#pra-pendaftaran-section .headline {
		font-size: 1.15em;
	}

	.pra-form input[type="text"],
	.pra-form input[type="email"],
	.pra-form input[type="tel"],
	.pra-form select {
		padding: 14px 16px;
		font-size: 16px; /* avoids zoom on focus in iOS */
	}

	.pra-form select {
		padding-right: 40px;
		background-position: right 16px center;
	}

	.pra-form .btn-submit {
		width: 100%;
		padding: 14px 20px;
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	#pra-pendaftaran-section .headline {
		font-size: 1.05em;
	}

	.pra-form .form-row {
		margin-bottom: 20px;
	}
}
