/* RESET */
* {
	box-sizing: border-box;
	font-family: "Inter", sans-serif;
}

/* Background */
body {
	min-height: 100vh;
	background: linear-gradient(135deg, #1e3a8a, #2563eb);
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Wrapper */
.register-wrapper {
	width: 100%;
	padding: 30px;
}

/* Card */
.register-card {
	max-width: 1000px;
	margin: auto;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 20px;
	padding: 40px 45px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
	animation: fadeUp 0.4s ease;
}

/* Title */
.register-card h1 {
	text-align: center;
	margin-bottom: 5px;
	color: #1e3a8a;
}

.subtitle {
	text-align: center;
	color: #6b7280;
	margin-bottom: 30px;
	font-size: 14px;
}

/* Grid */
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

/* Column */
.form-col {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Input Group */
.input-group label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
	display: block;
}

.input-group input,
.input-group select {
	width: 100%;
	padding: 13px 15px;
	border-radius: 12px;
	border: 1px solid #d1d5db;
	font-size: 14px;
	transition: 0.25s;
	background: #fff;
}

.input-group input:focus,
.input-group select:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
	outline: none;
}

/* Phone */
.phone-wrapper {
	display: flex;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	overflow: hidden;
}

.phone{
	border-top-left-radius: 0px !important;
	border-bottom-left-radius: 0px !important;
}

.phone-wrapper span {
	padding: 13px 15px;
	background: #e5e7eb;
	font-weight: 600;
}

/* Radio */
.radio-group {
	display: flex;
	gap: 24px;
	margin-top: 5px;
}

/* Button */
.register-btn {
	width: 100%;
	margin-top: 35px;
	padding: 15px;
	border-radius: 14px;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: white;
	font-size: 16px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	transition: 0.3s;
}

.register-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35);
}

/* Back login */
.back-login {
	text-align: center;
	margin-top: 22px;
	font-size: 14px;
}

.back-login a {
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
}

/* Message */
.message {
	display: none;
	padding: 12px 15px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 14px;
}

.message.success {
	background: #dcfce7;
	color: #166534;
}

.message.error {
	background: #fee2e2;
	color: #991b1b;
}

/* Utility */
.hidden {
	display: none;
}

/* Animation */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(15px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 900px) {
	.form-grid {
		grid-template-columns: 1fr;
	}

	.register-card {
		padding: 30px 25px;
	}
}

/* RADIO CARD WRAPPER */
.radio-box {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* CARD */
.radio-card {
	position: relative;
	padding: 18px 20px;
	border-radius: 14px;
	border: 2px solid #e5e7eb;
	background: #fff;
	cursor: pointer;
	transition: all 0.25s ease;
}

/* HIDE RADIO */
.radio-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* TEXT */
.radio-title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #1f2933;
}

.radio-desc {
	font-size: 13px;
	color: #6b7280;
	margin-top: 4px;
}

/* HOVER */
.radio-card:hover {
	border-color: #2563eb;
	background: rgba(37, 99, 235, 0.04);
}

/* CHECKED */
.radio-card input:checked ~ .radio-title {
	color: #2563eb;
}

.radio-card input:checked ~ .radio-desc {
	color: #2563eb;
}

.radio-card input:checked {
	/* trick supaya bisa detect checked */
}

.radio-card input:checked + .radio-title {
	/* noop */
}

/* CARD ACTIVE */
.radio-card:has(input:checked) {
	border-color: #2563eb;
	background: rgba(37, 99, 235, 0.08);
	box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

/* MOBILE */
@media (max-width: 600px) {
	.radio-box {
		grid-template-columns: 1fr;
	}
}
