.rsy-form-wrap {
	max-width: 640px;
	margin: 2rem auto;
	padding: 1.5rem;
	font-family: 'Segoe UI', Tahoma, sans-serif;
	line-height: 1.6;
}

.rsy-form-wrap h3 {
	margin: 0 0 .5rem;
	font-size: 1.5rem;
}

.rsy-scholarship-desc {
	margin-bottom: 1.5rem;
	color: #555;
}

.rsy-section-heading {
	margin: 2rem 0 1rem;
	padding-bottom: .5rem;
	border-bottom: 2px solid #184782;
}
.rsy-section-heading h3 {
	margin: 0;
	font-size: 1.2rem;
	color: #184782;
}
.rsy-section-heading:first-child {
	margin-top: 0;
}

.rsy-field-row {
	margin-bottom: 1.25rem;
}

.rsy-field-row label {
	display: block;
	margin-bottom: .3rem;
	font-weight: 600;
	font-size: .95rem;
}

.rsy-req {
	color: #c00;
}

.rsy-field-row input[type="text"],
.rsy-field-row input[type="email"],
.rsy-field-row input[type="tel"],
.rsy-field-row input[type="number"],
.rsy-field-row input[type="date"],
.rsy-field-row textarea,
.rsy-field-row select {
	width: 100%;
	padding: .55rem .75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: .95rem;
	box-sizing: border-box;
}

.rsy-field-row textarea {
	resize: vertical;
}

.rsy-field-row input:focus,
.rsy-field-row textarea:focus,
.rsy-field-row select:focus {
	border-color: #184782;
	outline: none;
	box-shadow: 0 0 0 2px rgba(24, 71, 130, .2);
}

.rsy-radio-group {
	display: flex;
	flex-direction: column;
	gap: .4rem;
}

.rsy-radio-group label {
	font-weight: normal;
	cursor: pointer;
}

.rsy-help {
	display: block;
	margin-top: .2rem;
	font-size: .8rem;
	color: #888;
}

.rsy-field-readonly {
	background-color: #f0f0f0 !important;
	color: #666 !important;
	cursor: not-allowed;
}

.rsy-btn {
	display: inline-block;
	padding: .65rem 2rem;
	background: #184782;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	transition: background .2s;
}

.rsy-btn:hover {
	background: #0f3460;
}

.rsy-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.rsy-form-error {
	padding: .75rem 1rem;
	margin-bottom: 1rem;
	background: #fef0f0;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	color: #a94442;
	font-size: .9rem;
}

.rsy-form-success {
	padding: .75rem 1rem;
	margin-bottom: 1rem;
	background: #edf7ed;
	border: 1px solid #c3e6cb;
	border-radius: 4px;
	color: #2e7d32;
	font-size: .9rem;
}

.rsy-form-message {
	margin-top: 1rem;
}

/* Auth tabs */
.rsy-auth-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 1.25rem;
	border-bottom: 2px solid #ddd;
}

.rsy-auth-tab {
	padding: .5rem 1.5rem;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	font-size: .95rem;
	color: #666;
	margin-bottom: -2px;
}

.rsy-auth-tab.active {
	color: #184782;
	border-bottom-color: #184782;
	font-weight: 600;
}

.rsy-auth-panel p {
	margin-bottom: 1rem;
}

.rsy-auth-panel label {
	display: block;
	margin-bottom: .3rem;
	font-weight: 600;
	font-size: .9rem;
}

.rsy-auth-panel input {
	width: 100%;
	padding: .55rem .75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: .95rem;
	box-sizing: border-box;
}

/* Scholarships listing */
.rsy-scholarships-listing {
	max-width: 900px;
	margin: 2rem auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.rsy-scholarship-card {
	background: #fff;
	border-radius: 12px;
	padding: 2.5rem 1.5rem 2rem;
	text-align: center;
	transition: box-shadow .2s, transform .2s;
	border: none;
	box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.rsy-scholarship-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,.1);
	transform: translateY(-2px);
}

.rsy-scholarship-card.is-closed {
	opacity: .6;
}

.rsy-scholarship-card-icon {
	margin-bottom: 1.25rem;
	color: #184782;
}

.rsy-scholarship-card-icon svg {
	display: inline-block;
}

.rsy-scholarship-card-title {
	margin: 0 0 1.25rem;
	font-size: 1.15rem;
	font-weight: 600;
	color: #1a1a2e;
	line-height: 1.5;
}

.rsy-apply-btn {
	display: inline-block;
	text-decoration: none;
	text-align: center;
	background: #184782;
	color: #fff;
	padding: 10px 28px;
	border-radius: 30px;
	font-size: .9rem;
	font-weight: 500;
	transition: background .2s;
}

.rsy-apply-btn:hover {
	background: #0f3460;
	color: #fff;
	text-decoration: none;
}

.rsy-btn-disabled {
	display: inline-block;
	padding: 10px 28px;
	background: #b0b0b0;
	color: #fff;
	border: none;
	border-radius: 30px;
	font-size: .9rem;
	font-weight: 500;
	cursor: not-allowed;
}

@media (max-width: 600px) {
	.rsy-scholarships-listing {
		grid-template-columns: 1fr;
		gap: 1rem;
		padding: 0 1rem;
	}
}

/* Upload form */
.rsy-upload-form {
	text-align: right;
}

.rsy-upload-applicant {
	color: #555;
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
}

.rsy-upload-progress {
	margin-bottom: 1.5rem;
}

.rsy-upload-progress-text {
	display: block;
	margin-bottom: .4rem;
	font-size: .9rem;
	font-weight: 600;
	color: #333;
}

.rsy-upload-progress-bar {
	height: 8px;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.rsy-upload-progress-fill {
	height: 100%;
	background: #184782;
	border-radius: 4px;
	transition: width .3s ease;
}

.rsy-upload-slots {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.rsy-upload-slot {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 1rem;
	background: #fafafa;
	transition: border-color .2s;
}

.rsy-upload-slot.is-uploaded {
	border-color: #c3e6cb;
	background: #f0faf2;
}

.rsy-upload-slot-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: .5rem;
}

.rsy-upload-slot-label {
	font-weight: 600;
	font-size: .95rem;
}

.rsy-upload-check {
	color: #2e7d32;
	font-size: 1.2rem;
	font-weight: bold;
}

.rsy-upload-preview {
	margin-bottom: .5rem;
}

.rsy-upload-preview img {
	max-width: 200px;
	max-height: 150px;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.rsy-upload-file-link {
	display: inline-block;
	padding: .3rem .8rem;
	background: #f0f0f0;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	font-size: .9rem;
}

.rsy-upload-input-wrap {
	display: flex;
	gap: .5rem;
	align-items: center;
	flex-wrap: wrap;
}

.rsy-upload-file-input {
	flex: 1;
	min-width: 0;
	font-size: .9rem;
}

.rsy-upload-btn {
	padding: .45rem 1.2rem;
	font-size: .9rem;
}

.rsy-upload-replace-btn {
	background: none;
	border: none;
	color: #184782;
	cursor: pointer;
	font-size: .85rem;
	padding: .2rem 0;
	text-decoration: underline;
}

.rsy-upload-slot-spinner {
	color: #666;
	font-size: .85rem;
	margin-top: .4rem;
}

.rsy-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid #ccc;
	border-top-color: #184782;
	border-radius: 50%;
	animation: rsy-spin .6s linear infinite;
	vertical-align: middle;
}

@keyframes rsy-spin {
	to { transform: rotate(360deg); }
}

.rsy-upload-slot-error {
	color: #a94442;
	font-size: .85rem;
	margin-top: .3rem;
}

@media (max-width: 600px) {
	.rsy-form-wrap {
		padding: 1rem;
		margin: 1rem;
	}
}
