/* Graduates Form Styles - Colegiul Pedagogic "Ion Creangă" */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #002147;
    --primary-light: #42638a;
    --accent: #6f97cd;
    --text: #333;
    --text-light: #666;
    --border: #ddd;
    --error: #dc3545;
    --success: #28a745;
    --bg-light: #f8f9fa;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: white;
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    min-height: 100vh;
}

.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* HEADER */
.site-header {
    text-align: center;
    margin-bottom: 40px;
}

.emblem-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.emblem-ring svg {
    width: 80px;
    height: 80px;
    fill: var(--primary);
}

.college-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
}

.site-title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 8px;
}

.site-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px auto 0;
    max-width: 200px;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: var(--accent);
}

.divider-diamond {
    width: 8px;
    height: 8px;
    background: var(--accent);
    transform: rotate(45deg);
}

/* CARD */
.form-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 40px 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .form-card {
        padding: 28px 25px;
    }
}

/* SECTION HEADINGS */
.section-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.form-section {
    margin-bottom: 32px;
}

/* FORM FIELDS */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 540px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

.field {
    margin-bottom: 18px;
}

.field:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.1);
}

input[type="text"].has-error,
input[type="email"].has-error,
input[type="tel"].has-error,
select.has-error {
    border-color: var(--error);
    background: #fff5f5;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-light);
    pointer-events: none;
}

.select-wrapper select {
    padding-right: 36px;
    cursor: pointer;
}

.field-error {
    font-size: 13px;
    color: var(--error);
    margin-top: 5px;
}

/* RADIO STATUS */
.status-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .status-group {
        grid-template-columns: 1fr;
    }
}

.status-option {
    position: relative;
}

.status-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.status-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-light);
    border: 2px solid var(--border);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
    border-radius: 3px;
    white-space: nowrap;
}

.status-option label:hover {
    border-color: var(--accent);
    background: white;
}

.status-option label .radio-dot {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-option label .radio-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.status-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: white;
}

.status-option input[type="radio"]:checked + label .radio-dot {
    border-color: var(--primary);
}

.status-option input[type="radio"]:checked + label .radio-dot::after {
    opacity: 1;
}

.status-option label .status-icon {
    font-size: 18px;
}

/* CONDITIONAL FIELDS */
.conditional-field {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
}

.conditional-field.visible {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
}

/* SUBMIT */
.submit-wrap {
    text-align: center;
    margin-top: 36px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 40px;
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 3px;
}

.btn-submit:hover {
    background: white;
    color: var(--primary);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* SUCCESS */
.success-panel {
    display: none;
    text-align: center;
    padding: 40px 28px;
}

.success-panel.show {
    display: block;
}

.success-icon {
    width: 70px;
    height: 70px;
    border: 3px solid var(--success);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--success);
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.success-text {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

.success-divider {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 20px auto;
}

/* FOOTER NOTE */
.form-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-light);
}

/* Entry animations */
.form-card {
    animation: fadeUp 0.5s ease both;
}

.site-header {
    animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
