/* global courses style */

:root {
	--primary-courses: #E30069;
    --primary-courses-hover: #C7005E;
	--primary-courses-light: #FFD6E0;
    --courses-background: #f8f9fa;
    --container-background: #FEF1FB;
    --card-bg: #ffffff;
    --card-hover-bg: #fafbfd;
}


body {
    background: var(--courses-background);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
	/* background: #f5f5f5; */
    background: var(--container-background);
    margin: 0;
    padding: 0;
}


.center{
    text-align: center;
}

.form-box {
    max-width: 270px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
}

.centered-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.c-container {
    max-width: 1200px;
    width: 100%;
    min-height: 80vh;
    margin: 0 auto 0 auto;
    background: var(--container-background);
    border-radius: 12px;
    /* box-shadow: 0 2px 16px rgba(0,0,0,0.07); */
    padding: 32px 28px 28px 28px;
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
}
h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    color: #222;
}

.link{
    color: var(--primary-courses);
}

main{
    margin: 0;
}

section {
    width: 100%;
}

input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #444;
    border-radius: 0.4rem;
    color: #131313;
}

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #333;
}

small {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    background: var(--primary-courses, #E30069);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.15s;
    margin: 0 auto;
    text-align: center;
    border: none;
}
.btn:hover {
    background: var(--primary-courses-hover, #C7005E);
}

.form-group {
    text-align: left;
    margin: 0.5rem 0;
}

/* Certificate Page Styles */
.certificate-section {
	max-width: 650px;
	width: 100%;
	margin: 2rem auto;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.certificate-header {
	text-align: center;
	margin-bottom: 2.5rem;
	width: 100%;
}

.certificate-header h1 {
	margin: 0 0 1rem 0;
	font-size: 2.2rem;
	color: #222;
}

.certificate-subtitle {
	margin: 0;
	font-size: 1.1rem;
	color: #666;
	font-weight: 400;
}

.certificate-form-card {
	/* background: var(--card-bg); */
	border-radius: 12px;
	padding: 2.5rem;
	/* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); */
	width: 100%;
	max-width: 500px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.form-title {
	font-size: 1.4rem;
	font-weight: 600;
	color: #222;
	margin: 0 0 1.5rem 0;
	text-align: center;
}

.certificate-form {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-items: center;
}

.form-group {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.form-select {
	width: 100%;
	padding: 0.85rem 2.5rem 0.85rem 1rem;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-family: inherit;
	font-size: 1rem;
	background-color: #fff;
	color: #222;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23d11d6b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 16px;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.form-select:hover {
}

.form-select:focus {
	outline: none;
	border-color: var(--primary-courses);
}

.btn-large {
	width: 100%;
	padding: 0.95rem 2rem;
	font-size: 1.05rem;
	font-weight: 600;
	border: none;
	transition: all 0.2s ease;
}

.btn-primary {
	background: var(--primary-courses);
	color: #fff;
}

.btn-primary:hover {
	background: var(--primary-courses-hover);
}

.certificate-info-box {
	background: var(--card-bg);
	border-left: 4px solid var(--primary-courses);
	border-radius: 6px;
	padding: 1rem 1.25rem;
	width: 100%;
	margin-top: 1.25rem;
	text-align: center;
}

.info-text {
	margin: 0;
	font-size: 0.95rem;
	color: #666;
	line-height: 1.5;
}

.certificate-alert-wrapper {
	margin: 1.5rem 0;
	width: 100%;
	max-width: 500px;
}

.alert {
	padding: 1.1rem 1.5rem;
	border-radius: 8px;
	font-size: 1rem;
	text-align: center;
	font-weight: 500;
}

.alert.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.alert.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}