@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
    --bg: #f4f8fb;
    --bg2: #eaf4fb;
    --card: #ffffff;
    --main: #145374;
    --main2: #1d779d;
    --accent: #0b8f4d;
    --accent2: #0a8f71;
    --gold: #f4c430;
    --text: #1f2937;
    --muted: #667085;
    --border: #d9e2ec;
    --danger: #b42318;
    --success: #067647;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --soft-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(11, 143, 77, 0.10), transparent 30%),
        radial-gradient(circle at top right, rgba(20, 83, 116, 0.16), transparent 32%),
        linear-gradient(135deg, #f7fbff 0%, var(--bg) 50%, #edf6fb 100%);
    color: var(--text);
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    line-height: 1.85;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(20,83,116,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20,83,116,.045) 1px, transparent 1px);
    background-size: 36px 36px;
}

.container {
    width: min(1050px, calc(100% - 28px));
    margin: 34px auto;
    position: relative;
    z-index: 1;
}

.container.wide { width: min(1280px, calc(100% - 28px)); }

.hero, .card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--main), var(--main2));
    color: #fff;
    padding: 30px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    left: -120px;
    top: -150px;
    background: rgba(255,255,255,.11);
}

.brand-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-box {
    flex: 0 0 auto;
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
    padding: 10px;
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-content { position: relative; z-index: 1; }

.hero h1, .card h1, .card h2 { margin: 0 0 12px; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.65rem); font-weight: 900; letter-spacing: -0.5px; }
.hero p { margin: 0 0 8px; font-weight: 600; }
.note { color: #e8f8ff; font-weight: 800; }
.hero .sub-title { color: #dff7ff; font-size: 1.05rem; }

.steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 22px;
    position: relative;
    z-index: 1;
}

.step {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px;
    padding: 10px 8px;
    text-align: center;
    font-weight: 800;
    color: #fff;
}

.step span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0 auto 4px;
    border-radius: 999px;
    background: #fff;
    color: var(--main);
    font-weight: 900;
}

.card h2 {
    color: var(--text);
    font-size: 1.55rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card h2::before {
    content: "";
    width: 10px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--main2));
}

label { display: block; font-weight: 800; margin-bottom: 8px; }

select, textarea, input[type="text"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 13px 15px;
    font: inherit;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: .2s ease;
}

select:focus, textarea:focus, input[type="text"]:focus {
    border-color: var(--main);
    box-shadow: 0 0 0 5px rgba(20, 83, 116, 0.12);
}

.statement {
    background: linear-gradient(135deg, #f1f8fc, #ffffff);
    border: 1px solid var(--border);
    border-right: 6px solid var(--main);
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 700;
}

.options {
    display: grid;
    gap: 10px;
    margin: 14px 0 18px;
}

.radio-line {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fbfdff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 11px 13px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15,23,42,.03);
}
.radio-line:hover { border-color: rgba(20,83,116,.45); background: #f7fbff; }

.rating-guide {
    margin-top: 18px;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
}

.rating-guide h3 {
    margin: 0 0 14px;
    color: var(--main);
    font-size: 1.2rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.guide-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 13px 8px;
    text-align: center;
    box-shadow: var(--soft-shadow);
}

.guide-item strong {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 7px;
    border-radius: 50%;
    background: var(--main);
    color: #fff;
    font-size: 1.1rem;
}

.guide-item span {
    display: block;
    font-weight: 800;
    color: var(--text);
    line-height: 1.5;
}

.rating-table { display: grid; gap: 10px; }

.rating-header, .rating-row {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 14px;
    align-items: center;
}

.rating-header {
    color: var(--main);
    font-weight: 900;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.rating-row {
    background: #fbfdff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 13px;
    transition: .2s ease;
}
.rating-row:hover { transform: translateY(-1px); box-shadow: var(--soft-shadow); }
.rating-row p { margin: 0; }

.rating-options {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.rating-options label { margin: 0; cursor: pointer; }
.rating-options input, .radio-line input { accent-color: var(--accent); }
.rating-options input { display: none; }

.rating-options span {
    display: grid;
    place-items: center;
    width: 45px;
    min-height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 900;
    font-size: 1.05rem;
    transition: 0.2s ease;
    text-align: center;
}

.rating-options input:checked + span {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 9px 18px rgba(11,143,77,.22);
}

.submit-btn, .link-btn {
    display: inline-block;
    border: none;
    border-radius: 16px;
    background: var(--accent);
    color: #fff;
    padding: 13px 24px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(11,143,77,.18);
    transition: .2s ease;
}
.submit-btn:hover, .link-btn:hover { transform: translateY(-2px); filter: brightness(.96); }
.submit-btn { width: 100%; font-size: 1.15rem; margin-bottom: 26px; }

.success { border-right: 7px solid var(--success); }
.error { border-right: 7px solid var(--danger); }

.admin-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
.stat-card {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 18px;
    padding: 14px;
    text-align: center;
}
.stat-card strong { display: block; font-size: 1.8rem; line-height: 1.2; }
.stat-card span { color: #e8f8ff; font-weight: 800; }

.admin-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
.export-btn { background: #0f7a3d; }
.dashboard-btn { background: #0a8f71; }
.secondary-btn { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); }

.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; overflow: hidden; background: #fff; }
th, td { border: 1px solid var(--border); padding: 11px 12px; vertical-align: top; }
th { background: #eef7ff; color: var(--main); font-weight: 900; }
tr:nth-child(even) td { background: #fbfdff; }

.footer-note {
    text-align: center;
    color: var(--muted);
    font-weight: 700;
    margin: 16px 0 4px;
}

@media (max-width: 900px) {
    .steps, .admin-summary { grid-template-columns: repeat(2, 1fr); }
    .brand-row { align-items: flex-start; }
    .logo-box { width: 92px; height: 92px; border-radius: 22px; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 18px, 1050px); margin: 16px auto; }
    .hero, .card { padding: 18px; border-radius: 20px; }
    .brand-row { flex-direction: column; text-align: center; align-items: center; }
    .steps, .guide-grid, .admin-summary { grid-template-columns: 1fr; }
    .rating-header { display: none; }
    .rating-row { grid-template-columns: 1fr; }
    .rating-options { justify-content: flex-start; }
    .rating-options span { width: 44px; }
    table { white-space: nowrap; }
}

.extra-item-box {
    margin-top: 18px;
    padding: 16px;
    background: #f7fbff;
    border: 1px dashed #b8d4ea;
    border-radius: 14px;
}

.extra-item-box label {
    display: block;
    margin-bottom: 10px;
    color: #174F78;
    font-weight: 800;
}

.extra-item-box textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
}

.other-field-box {
    margin-top: 14px;
    padding: 14px;
    background: #f7fbff;
    border: 1px dashed #b8d4ea;
    border-radius: 14px;
}

.inline-form {
    display: inline;
    margin: 0;
}

.danger-btn {
    background: var(--danger);
    box-shadow: 0 10px 22px rgba(180, 35, 24, .18);
}

.admin-alert {
    position: relative;
    z-index: 1;
    margin: 16px auto 0;
    max-width: 620px;
    border-radius: 14px;
    padding: 10px 14px;
    text-align: center;
    font-weight: 900;
}

.success-alert {
    background: rgba(236, 253, 243, .95);
    color: var(--success);
    border: 1px solid rgba(6, 118, 71, .24);
}

.error-alert {
    background: rgba(254, 243, 242, .95);
    color: var(--danger);
    border: 1px solid rgba(180, 35, 24, .24);
}

/* Final polished hero design */
.hero-polished {
    min-height: 320px;
    padding: 30px 38px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 28px;
}

.hero-polished::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(255,255,255,.11), transparent 28%),
        linear-gradient(135deg, rgba(20,83,116,.22), rgba(29,119,157,.10));
    pointer-events: none;
}

.hero-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}

.university-name {
    color: #dff7ff;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: .2px;
}

.hero-polished .logo-box {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    padding: 9px;
    box-shadow: 0 16px 32px rgba(0,0,0,.16);
}

.hero-polished .hero-content {
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
}

.hero-polished h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3.8vw, 2.55rem);
    line-height: 1.35;
    letter-spacing: -0.3px;
    font-weight: 800;
}

.hero-polished h1 span,
.hero-polished h1 small {
    display: block;
}

.hero-polished h1 small {
    font-size: .82em;
    margin-top: 2px;
    font-weight: 800;
}

.title-divider {
    width: 90px;
    height: 3px;
    margin: 16px auto 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
}

.hero-description {
    width: min(820px, 100%);
    margin: 0 auto;
    text-align: right;
}

.hero-polished .hero-description p {
    margin: 0 0 10px;
    font-size: clamp(.92rem, 1.45vw, 1.05rem);
    font-weight: 400;
    line-height: 1.9;
}

.hero-polished .note {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-top: 14px;
    margin-right: 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    color: #f3fbff;
    font-weight: 500;
}

.hero-polished .note::before {
    content: "ⓘ";
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,.20);
    color: #ffffff;
    font-size: .95rem;
    font-weight: 700;
    flex: 0 0 auto;
}

@media (max-width: 760px) {
    .hero-polished {
        min-height: auto;
        padding: 26px 18px 30px;
        border-radius: 22px;
    }

    .hero-topbar {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 14px;
    }

    .hero-polished .logo-box {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .university-name {
        font-size: 1rem;
    }

    .hero-polished h1 {
        font-size: clamp(1.45rem, 6.8vw, 1.95rem);
        line-height: 1.38;
    }

    .title-divider {
        width: 90px;
        margin: 15px auto 14px;
    }

    .hero-polished .hero-description p {
        font-size: .88rem;
        line-height: 1.8;
        font-weight: 400;
    }

    .hero-polished .note {
        padding: 9px 12px;
        gap: 8px;
        margin-top: 12px;
    }
}
