body {
    padding: 0;
    margin: 0;
    background: #2a2cb3;
    min-height: 100vh;
    color: #F5F5F5;
    font-family: 'Hero New', sans-serif;
    font-size: 16px;
    position: relative;
    overflow-x: hidden;
    text-align: center;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    min-height: 100vh;
    width: 480px;
    margin: auto;
}

@media (max-width: 860px) {
  .content-wrapper { width: 100%; }

  .side-text-left .stars-row .star:not(:first-child),
  .side-text-right .stars-row .star:not(:first-child) {
        display: none;
  }

  form { width: 100% !important; }

  .ornament.right-middle { display: none}
}


.side-text-left, .side-text-right {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 500;
    white-space: nowrap;
    writing-mode: sideways-lr;
    text-orientation: mixed;
    top: 0;
    height: 100vh;
    white-space: nowrap;
}

.side-text-right .vertical-text {
    padding-top: 140px;
}

.side-text-left .vertical-text, .side-text-right .vertical-text {
    position: sticky;
    top: 0;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    height: 500px;
}

.vertical-text > div {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.ornament, .ornament::after {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: white;
    content: '';
}

.ornament.top-left { top: 15px; left: 0px; }
.ornament.top-left::after { top: 18px; }
.ornament.top-right { top: 15px; right: 0 }
.ornament.top-right::after { top: 18px; }
.ornament.bottom-left { bottom: 10px; left: 0; }
.ornament.bottom-left::after { left: 18px; bottom: 0; }
.ornament.bottom-right { bottom: 10px; right: 0; }
.ornament.bottom-right::after { right: 18px; bottom: 0 }
.ornament.right-middle { left: 10px; position: fixed; top: calc(50% - 30px) }
.ornament.right-middle::after { top: 18px; left: 0; }

.side-text-left a, .side-text-right a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.side-text-left a:hover, .side-text-right a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

.consent-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    transition: font-style 0.2s;
}

.consent-link:hover {
    font-style: italic;
}


.title, p, label {
    transform: scaleX(0.85);
    transform-origin: center;
}

.content {    
    width: 90%;
    margin: auto;
}

.stars-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.stars-row .star {
    width: 25px;
    height: 25px;
    background: url('/stern.png') center/contain no-repeat;
    flex-shrink: 0;
}

.title {
    margin: 20px 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.title h1 {
    width: 260px;
    margin: auto;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 6px;
    line-height: 1;
    letter-spacing: 0.2em;
    text-align: justify;
    text-align-last: justify;
    white-space: nowrap;
    font-style: italic;
    transform: scaleX(0.85);
    transform-origin: center;
    transform: scaleY(0.85);
}

.title .stars-row .star {
    width: 35px;
    height: 35px;
}

.title .char-justify {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.title .char-justify span {
    display: inline-block;
}


.emblem-container {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    margin: 50px 0;
    background: url('/emblem.png') center/contain no-repeat;
}

form {
    margin: 40px auto;
    width: 90%;
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
}

fieldset {
   border: none;
}

input[type="text"],
input[type="email"],
input[type="file"],
textarea {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0;
    background-color: white;
    color: #2a2cb3;
    font-family: 'Hero New', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.2s;
    font-style: italic;
}

input[type="checkbox"] {
    margin-right: 16px;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

.field {
    margin-top: 16px;
}

label {
    font-size: 14px;
    letter-spacing: 1px;
}

.field .hint {
    color: rgba(255, 255, 255, 0.5);
}

.file-input-label {
    display: none;
}

.errors {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 14px;
    margin: 4px 0 0 0;
    background-color: rgba(255, 100, 100, 0.3);
    padding: 8px;
    border-left: 3px solid rgba(255, 100, 100, 0.8);
}

button,
input[type="submit"] {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 32px;
    font-family: 'Hero New', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;
    text-transform: uppercase;
}

button:hover,
input[type="submit"]:hover {
    background-color: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

button:active,
input[type="submit"]:active {
    transform: scale(0.98);
}

button:disabled,
input[type="submit"]:disabled {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    opacity: 0.6;
}

.notice, .error, .progress-window {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    padding: 16px 24px;
    border: 2px solid;
    background-color: rgba(43, 44, 179, 0.95);
    backdrop-filter: blur(10px);
    font-size: 14px;
    z-index: 100;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.error {
    border-color: rgba(255, 100, 100, 0.9);
    color: rgba(255, 255, 255, 0.95);
}

.notice {
    border-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.95);
}

.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(30, 40, 120, 0.9);
    backdrop-filter: blur(4px);
    z-index: 1000;
}


.progress-title {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 2px;
}

.progress-bar-container {
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 4px;
    margin-bottom: 16px;
}

.progress-bar {
    background-color: rgba(255, 255, 255, 0.6);
    height: 24px;
    transition: width 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.progress-percentage {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.progress-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-cancel {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    font-family: 'Hero New', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-cancel:hover {
    background-color: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-cancel:active {
    transform: scale(0.98);
}


/* Hairline */
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New Hairline.otf");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New Hairline Italic.otf");
  font-weight: 100;
  font-style: italic;
}

/* Thin */
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New Thin.otf");
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New Thin Italic.otf");
  font-weight: 200;
  font-style: italic;
}

/* UltraLight */
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New UltraLight.otf");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New UltraLight Italic.otf");
  font-weight: 300;
  font-style: italic;
}

/* Light */
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New Light.otf");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New Light Italic.otf");
  font-weight: 300;
  font-style: italic;
}

/* Regular */
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New Regular.otf");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New Regular Italic.otf");
  font-weight: 400;
  font-style: italic;
}

/* Medium */
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New Medium.otf");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New Medium Italic.otf");
  font-weight: 500;
  font-style: italic;
}

/* SemiBold */
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New SemiBold.otf");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New SemiBold Italic.otf");
  font-weight: 600;
  font-style: italic;
}

/* Bold */
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New Bold.otf");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New Bold Italic.otf");
  font-weight: 700;
  font-style: italic;
}

/* ExtraBold */
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New ExtraBold.otf");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Hero New";
  src: url("/hero-new/Hero New ExtraBold Italic.otf");
  font-weight: 800;
  font-style: italic;
}
