/* Student Discount Form Styles */

:root {
	--bg: #1f3b4d;
	--card-bg: #ffffff;
	--text: #1d2433;
	--muted: #6c7a89;
	--primary: #0ea5e9;
	--primary-dark: #0284c7;
	--accent: #22c55e;
	--danger: #ef4444;
	--radius: 14px;
	--shadow: 0 14px 24px rgba(0,0,0,0.18);
}

body {
	background: var(--bg);
}

.discount-section {
	padding: 40px 16px;
	display: flex;
	justify-content: center;
}

.discount-form-wrapper {
	width: 100%;
	max-width: 1000px; /* widened for desktop view */
	background: var(--card-bg);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px;
}

.discount-form-title {
	text-align: center;
	color: var(--primary);
	font-size: 22px;
	margin-bottom: 8px;
}

.discount-form-subtitle {
	text-align: center;
	color: var(--muted);
	font-size: 13px;
	margin-bottom: 18px;
}

.discount-form .message {
	text-align: center;
	font-weight: 600;
	margin-bottom: 15px;
}

.success-message {
	background-color: #d4edda;
	color: #155724;
	padding: 12px;
	border: 1px solid #c3e6cb;
	border-radius: 8px;
}

.error-message {
	background-color: #f8d7da;
	color: #721c24;
	padding: 12px;
	border: 1px solid #f5c6cb;
	border-radius: 8px;
}

.discount-form label {
	display: block;
	font-size: 14px;
	color: var(--text);
	margin: 10px 0 6px;
}

.discount-form input,
.discount-form select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-sizing: border-box;
	font-size: 14px;
	background: #f8fafc;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.form-group { min-width: 0; }

.discount-form button[type="submit"] {
	margin-top: 18px;
	width: 100%;
	padding: 12px;
	background: var(--primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
	box-shadow: 0 6px 14px rgba(2,132,199,.18);
}

.discount-form button[type="submit"]:hover {
	background: var(--primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(2,132,199,.25);
}

/* removed login notice animation (no longer used) */

/* Disabled inputs appearance (still used for dependent selects) */
.discount-form select:disabled,
.discount-form input:disabled {
	background: #eef2f7;
	cursor: not-allowed;
	opacity: .9;
}

/* Noticeable info block under the form title */
.discount-info {
	border: 1.5px dashed var(--primary);
	background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 14px;
	position: relative;
}
.discount-info:before {
	content: "\2139\FE0F  Important";
	position: absolute;
	top: -10px;
	left: 12px;
	font-size: 12px;
	background: var(--primary);
	color: #fff;
	padding: 2px 8px;
	border-radius: 999px;
	box-shadow: 0 4px 10px rgba(2,132,199,.25);
}
.discount-form-note {
	color: #0f5132;
	background: #d1fae5;
	border: 1px solid #10b98133;
	padding: 8px 10px;
	border-radius: 8px;
	margin-top: 8px;
}
.discount-form-offer {
	color: #7c2d12;
	background: #ffedd5;
	border: 1px solid #f59e0b33;
	padding: 8px 10px;
	border-radius: 8px;
	margin-top: 8px;
	font-weight: 600;
}

/* subtle entrance */
.discount-info { animation: popIn .35s ease-out both; }
@keyframes popIn { from { transform: scale(.98); opacity: .0 } to { transform: none; opacity: 1 } }

/* Tablet */
@media (max-width: 992px) {
	.discount-form-wrapper { padding: 24px; }
	.discount-form-title { font-size: 20px; }
}

/* Mobile */
@media (max-width: 768px) {
	.form-row { grid-template-columns: 1fr; }
	.discount-form-wrapper { padding: 20px; }
}

/* Small Mobile */
@media (max-width: 480px) {
	.discount-section { padding: 24px 12px; }
	.discount-form-title { font-size: 18px; }
	.discount-form button[type="submit"] { font-size: 14px; }
}
