:root {
    --gold: #3498db;
    --dark: #203746;
    --text: #22313a;
    --gray: #667985;
    --line: #d7e5ed;
    --light: #f3f8fb;
    --brand-blue: #3498db;
    --brand-blue-dark: #2980b9;
    --brand-cyan: #45c8ce;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--light);
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

input,
select,
textarea,
button {
    font: inherit;
}

.layout {
    display: grid;
    grid-template-columns: minmax(320px, 42%) 1fr;
    min-height: 100vh;
}

/* Left panel */

.intro {
    position: sticky;
    top: 0;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 6vw;
    color: white;
    background:
        radial-gradient(circle at 85% 15%, rgba(69, 200, 206, 0.32), transparent 32%),
        linear-gradient(145deg, #3498db 0%, #2980b9 45%, var(--dark) 100%);
}

.logo {
    display: grid;
    justify-items: start;
    gap: 12px;
}

.logo-link {
    display: inline-flex;
    padding: 9px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(14, 52, 73, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(14, 52, 73, 0.28);
}

.logo-link:focus-visible {
    outline: 3px solid var(--brand-cyan);
    outline-offset: 4px;
}

.logo img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
}

.logo small {
    color: rgba(255, 255, 255, 0.82);
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro-text {
    max-width: 580px;
    padding: 45px 0;
}

.label {
    margin: 0;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.intro h1 {
    margin: 14px 0 24px;
    font-size: clamp(2.2rem, 4.5vw, 4.8rem);
    line-height: 1.03;
}

.intro-text > p:last-of-type {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
}


.rcn-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 30px;
    padding: 18px 20px;
    color: #d7d9da;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(69, 200, 206, 0.55);
    border-radius: 12px;
}

.rcn-note > span {
    display: grid;
    width: 27px;
    height: 27px;
    flex: none;
    place-items: center;
    color: var(--dark);
    background: var(--gold);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
}

.rcn-note p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.6;
}

.rcn-note strong {
    color: white;
}


.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
}

.contact a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

/* Right panel */

.content {
    padding: 70px 6vw;
}

.page-heading,
.form {
    width: min(100%, 760px);
    margin: 0 auto;
}

.page-heading {
    margin-bottom: 30px;
}

.page-heading h2 {
    margin: 10px 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.page-heading > p:last-child {
    color: var(--gray);
}

.form {
    padding: 40px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(18, 23, 27, 0.14);
}

.section + .section {
    margin-top: 35px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    font-size: 1.15rem;
}

.section h3 span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: white;
    background: var(--gold);
    border-radius: 50%;
    font-size: 0.85rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.full {
    grid-column: 1 / -1;
}

.field label,
.field-title {
    display: block;
    margin: 0 0 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    color: var(--text);
    background: white;
    border: 1px solid #cfd6da;
    border-radius: 9px;
    outline: none;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.16);
}

.with-unit {
    display: flex;
}

.with-unit input {
    border-radius: 9px 0 0 9px;
}

.with-unit span {
    display: grid;
    min-width: 58px;
    place-items: center;
    color: var(--gray);
    background: #edf0f1;
    border: 1px solid #cfd6da;
    border-left: 0;
    border-radius: 0 9px 9px 0;
    font-weight: bold;
}

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

.option {
    position: relative;
    cursor: pointer;
}

.option input {
    position: absolute;
    opacity: 0;
}

.option span {
    display: grid;
    min-height: 48px;
    place-items: center;
    color: var(--gray);
    border: 1px solid #cfd6da;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: bold;
}

.option input:checked + span {
    color: #216d9f;
    background: #eaf5fb;
    border-color: var(--gold);
}

.file-upload {
    display: flex !important;
    align-items: center;
    gap: 15px;
    min-height: 105px;
    padding: 20px;
    background: #fbfbfa;
    border: 1px dashed #b9c1c6;
    border-radius: 12px;
    cursor: pointer;
}

.file-upload:hover {
    background: #eaf5fb;
    border-color: var(--gold);
}

.file-upload b {
    display: grid;
    width: 42px;
    height: 42px;
    flex: none;
    place-items: center;
    color: white;
    background: var(--gold);
    border-radius: 50%;
    font-size: 1.5rem;
}

.file-upload span {
    display: grid;
}

.file-upload small,
.file-info {
    color: var(--gray);
    font-size: 0.78rem;
}

.file-info {
    margin: 8px 0 0;
}

.file-info.selected {
    color: #247aa9;
    font-weight: 600;
}

.file-info.error {
    color: #b42318;
    font-weight: 600;
}

.hidden {
    display: none;
}

.consent {
    display: flex !important;
    gap: 10px;
    padding: 15px;
    color: var(--gray);
    background: #f7f8f8;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 0.83rem !important;
    font-weight: normal !important;
}

.consent input {
    width: 18px;
    min-height: 18px;
    flex: none;
    margin-top: 3px;
    accent-color: var(--gold);
}

.submit {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    padding: 14px 24px;
    color: white;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(41, 128, 185, 0.24);
    cursor: pointer;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.submit:hover {
    color: white;
    background: linear-gradient(135deg, #2f8fcb, #216f9f);
    box-shadow: 0 14px 28px rgba(41, 128, 185, 0.32);
    transform: translateY(-2px);
}

.submit:active {
    box-shadow: 0 6px 16px rgba(41, 128, 185, 0.24);
    transform: translateY(0);
}

.submit:focus-visible {
    outline: 3px solid rgba(69, 200, 206, 0.65);
    outline-offset: 4px;
}

.message {
    display: none;
    margin-top: 16px;
    padding: 14px;
    border-radius: 9px;
    font-weight: bold;
}

.message.error {
    display: block;
    color: #b42318;
    background: #fff1f0;
}

.message.success {
    display: block;
    color: #2f6d52;
    background: #edf8f2;
}

/* Mobile */

@media (max-width: 1000px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .intro {
        position: static;
        min-height: auto;
        padding: 35px 24px 45px;
    }

    .content {
        padding: 45px 20px 65px;
    }
}

@media (max-width: 650px) {
    .form {
        padding: 22px 16px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: auto;
    }

    .options {
        grid-template-columns: 1fr 1fr;
    }

    .contact {
        flex-direction: column;
    }
}
.loading-screen {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
    z-index: 99999;

    align-items: center;
    justify-content: center;
}

.loading-screen.active {
    display: flex;
}

.loading-box {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.loading-box h2 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.loading-box p {
    font-size: 18px;
    margin-bottom: 10px;
}

.loading-box small {
    opacity: 0.7;
}

.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #e5e5e5;
    border-top-color: var(--brand-blue);
    border-radius: 50%;
    margin: 0 auto;
    animation: obracanie 0.8s linear infinite;
}

@keyframes obracanie {
    to {
        transform: rotate(360deg);
    }
}

/* Application footer */

.app-footer {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 24px;
    color: rgba(255, 255, 255, 0.86);
    background:
        radial-gradient(circle at 50% 0, rgba(69, 200, 206, 0.2), transparent 48%),
        var(--dark);
    border-top: 3px solid var(--gold);
    text-align: center;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.app-footer a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.app-footer a:hover {
    color: #63dce0;
    text-shadow: 0 0 14px rgba(69, 200, 206, 0.38);
}

.app-footer a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 2px;
}

@media (max-width: 650px) {
    .app-footer {
        min-height: 70px;
        flex-direction: column;
        gap: 2px;
        padding: 17px 16px;
        font-size: 0.82rem;
    }
}
