/* @import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --main: #133f73;
    --secondary: #02c0df;
    --third: #FF7B9C;
    --white: #ffffff;
    --gray: #242F40;
    --pink:#ffa7a7;
}

* {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    /* font-family: 'Pacifico', cursive; */
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
}

body {
    background-color: #f4f4f4;
}

.no-copy {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* КЛАС ЗА СПИРАНЕ НА АНИМАЦИИТЕ ПРИ RESIZE */
.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    /* Променено на space-between, за да раздели Лого - Линкове - Профил */
    justify-content: space-between; 
    align-items: center;
    /* По-компактна височина */
    height: 60px; 
    /* Градиент надясно */
    background: linear-gradient(to right, var(--main), var(--secondary)); 
    z-index: 1000;
    /* Добавен padding, за да не са елементите залепени за края */
    padding: 0 20px; 
}

.logo {
    /* Височината се съобразява с новия размер на навигацията */
    height: 100%; 
    display: flex;
    align-items: center;
    gap: 10px; /* Разстояние между иконата и текста */
}

.logo span {
    color: var(--white);
    font-size: 18px;
}

/* Няма нужда от logo img стилове, ако ползваш FontAwesome, но оставям за всеки случай */
.logo img {
    height: 80%; /* Намалено за компактност */
    width: auto;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 50%;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    letter-spacing: 2px; /* Леко намалено */
    font-size: 14px; /* По-малък шрифт */
    padding: 8px 15px; /* По-компактен padding */
    transition: .3s linear;
    position: relative;
}

.nav-links a:hover {
    color: var(--third);
    background-color: #fff;
    border-radius: 5px;
}

.nav-links a::before,
.nav-links a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0%;
    left: 0;
    box-sizing: border-box;
    z-index: -1;
}

.nav-links a::before {
    bottom: 0;
    border-left: 1px solid var(--white);
    border-right: 1px solid var(--white);
    transition: .3s linear;
}

.nav-links a::after {
    top: 0;
    background-color: var(--white);
    transition: .3s linear .3s;
}

.nav-links a:hover::before,
.nav-links a:hover::after {
    height: 100%;
}

/* НОВО: Стилове за профила вдясно */
.nav-profile {
    display: flex;
    align-items: center;
}

.avatar {
    width: 32px; /* Малък размер */
    height: 32px;
    background-color: var(--third);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.2);
}

/* -----------------------
   3. БУРГЕР МЕНЮ
   ----------------------- */
.burger {
    display: none;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

/* -----------------------
   4. МОБИЛНА ВЕРСИЯ
   ----------------------- */
@media screen and (max-width: 1480px) { .nav-links { width: 60%; } } /* Лека корекция заради профила */
@media screen and (max-width: 1200px) { .nav-links { width: 70%; } }
@media screen and (max-width: 1058px) { .nav-links { width: 75%; } }

@media screen and (max-width: 991px) {
    body { overflow-x: hidden; }

    .nav-links {
        position: fixed;
        right: 0px;
        /* Коригирано спрямо новата височина от 60px */
        height: calc(100vh - 60px); 
        top: 60px; 
        background: linear-gradient(to bottom, var(--secondary), 85%, var(--main));
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        /* Скрито състояние */
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-bottom: 15vh;
    }
    
    /* Скриваме профила в мобилното меню или го оставяме до бургера - тук го скривам, за да не пречи */
    .nav-profile {
        display: none; 
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
        cursor: pointer;
    }
}

.nav-active {
    transform: translateX(0%);
}

/* Анимации на бургер линиите */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* =======================
   SUBMISSION POLICY PAGES
   ======================= */
.policy-body {
    min-height: 100vh;
    color: #24364b;
    background:
        radial-gradient(circle at top right, rgba(2, 192, 223, .14), transparent 28rem),
        #f4f7fb;
}

.site-nav .logo {
    color: var(--white);
}

.site-nav .logo span {
    font-weight: 700;
    letter-spacing: .2px;
}

.nav-links a.is-active {
    color: var(--main);
    background-color: var(--white);
    border-radius: 5px;
}

.nav-links .nav-register {
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 5px;
}

.policy-page-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 100px 0 48px;
}

.policy-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid #dce6f1;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(19, 63, 115, .10);
}

.policy-header {
    padding: 36px 44px 30px;
    color: var(--white);
    background: linear-gradient(125deg, var(--main), #1761a6 62%, var(--secondary));
}

.eyebrow {
    margin-bottom: 9px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #d9f8ff;
}

.policy-header h1 {
    margin-bottom: 10px;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.15;
}

.policy-header > p:last-child {
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .92);
}

.submission-steps {
    display: flex;
    gap: 10px;
    padding: 20px 44px;
    border-bottom: 1px solid #e4ecf4;
    background: #fbfdff;
}

.step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #728297;
    font-size: .88rem;
    font-weight: 700;
}

.step:not(:last-child)::after {
    width: 36px;
    height: 1px;
    margin-left: 4px;
    content: "";
    background: #cfd9e5;
}

.step b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: #fff;
    font-size: .76rem;
    border-radius: 50%;
    background: #9baabe;
}

.step.is-current { color: var(--main); }
.step.is-current b { background: var(--secondary); }
.step.is-complete { color: #207044; }
.step.is-complete b { background: #2c9b60; }

.policy-content {
    display: grid;
    gap: 18px;
    padding: 34px 44px 24px;
}

.policy-section {
    padding: 22px 24px;
    border: 1px solid #e2ebf4;
    border-radius: 10px;
    background: #fff;
}

.policy-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--main);
    font-size: 1.1rem;
}

.policy-section h2 i {
    color: var(--secondary);
}

.policy-section p,
.policy-list {
    font-size: .96rem;
    line-height: 1.65;
    color: #46566a;
}

.policy-list {
    padding-left: 1.3rem;
}

.policy-list li + li {
    margin-top: 8px;
}

.policy-note {
    border-left: 4px solid var(--secondary);
    background: #f0fbfd;
}

.agreement-area {
    display: grid;
    gap: 24px;
    padding: 28px 44px 36px;
    border-top: 1px solid #e4ecf4;
    background: #fbfdff;
}

.checkbox-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: .95rem;
    line-height: 1.5;
    color: #34485e;
}

.checkbox-container input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.checkmark {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    margin-top: 1px;
    border: 2px solid #90a3b8;
    border-radius: 4px;
    background: var(--white);
}

.checkbox-container input:checked + .checkmark {
    position: relative;
    border-color: var(--main);
    background: var(--main);
}

.checkbox-container input:checked + .checkmark::after {
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    content: "";
    transform: rotate(45deg);
    border: solid var(--white);
    border-width: 0 2px 2px 0;
}

.checkbox-container input:focus-visible + .checkmark {
    outline: 3px solid rgba(2, 192, 223, .35);
    outline-offset: 2px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel,
.btn-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 10px 18px;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn-cancel {
    color: var(--main);
    border: 1px solid #afc0d2;
    background: var(--white);
}

.btn-continue {
    color: var(--white);
    background: var(--main);
}

.btn-cancel:hover,
.btn-continue:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(19, 63, 115, .18);
}

.btn-continue:not(:disabled):hover { background: #0e315b; }

.btn-continue:disabled {
    cursor: not-allowed;
    opacity: .48;
}

@media screen and (max-width: 991px) {
    .site-nav .logo span { display: none; }

    .site-nav .burger {
        padding: 3px;
        background: transparent;
    }

    .site-nav .nav-links { z-index: 1001; }
    .site-nav .nav-links a.is-active { color: var(--main); }
}

@media screen and (max-width: 640px) {
    .policy-page-container {
        width: min(100% - 20px, 1120px);
        padding-top: 80px;
        padding-bottom: 20px;
    }

    .policy-card { border-radius: 10px; }

    .policy-header,
    .policy-content,
    .agreement-area { padding-right: 20px; padding-left: 20px; }

    .policy-header { padding-top: 28px; padding-bottom: 25px; }

    .submission-steps {
        gap: 7px;
        padding: 16px 20px;
    }

    .step { font-size: .72rem; }
    .step b { width: 21px; height: 21px; }
    .step:not(:last-child)::after { width: 10px; margin-left: 0; }

    .policy-content { padding-top: 22px; gap: 12px; }
    .policy-section { padding: 18px; }

    .action-buttons { justify-content: stretch; }
    .btn-cancel, .btn-continue { flex: 1 1 100%; }
}

