@font-face {
    font-family: "Teodor";
    font-display: swap;
    src: url("fonts/Teodor-Thin.woff") format("woff"), url("fonts/Teodor-Thin.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "TTHoves";
    font-display: swap;
    src: url("fonts/TTHoves-Regular.ttf") format("ttf"), url("fonts/TTHoves-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "TTHoves";
    font-display: swap;
    src: url("fonts/TTHoves-Light.woff") format("woff"), url("fonts/TTHoves-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
}
* {
    box-sizing: border-box;
}
  
html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
em,
img,
strong,
sub,
sup,
b,
u,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
table,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: baseline;
    background: transparent;
}

.container {
    max-width: 970px;
    padding: 0px 8px;
    margin: 0px auto;
}

.header-container {
    /*margin-bottom: 20px;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.header-logo {
    flex: 0 0 auto;
    height: 27px;
    display: block;
}

.header-logo img {
    display: block;
    width: auto;
    height: 100%;
    object-fit: contain;
}

.announcement-bar {
    padding: 8px 0px;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background: #EDEDED;
}

.announcement-bar-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.announcement-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.announcement-logo {
    flex: 0 0 60px;
    height: 60px;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    overflow: hidden;
}

.announcement-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-text {
    margin: 0px;
    font-size: 12px;
    line-height: 1.1;
    color: #181818;
    font-family: "Helvetica Light", Helvetica, sans-serif;
    font-weight: 300;
}

.main-button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 40px;
    background: #181818;
    color: white;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.12);
    font-size: 12px;
    letter-spacing: 0.12px;
    line-height: 1.333;
    font-weight: 400;
    font-family: "Helvetica Light", Helvetica, sans-serif;
    text-decoration: none;
    border: 0px;
    box-shadow: none;
    cursor: pointer;
}

.announcement-icons {
    display: none;
    gap: 8px;
}

.announcement-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-section {
    min-height: 100vh;
    width: 100vw;
    padding: 20px 8px;
    background-color: black;
    /*background-image: url('images/background_old.jpg');*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form-body {
    width: 100%;
    max-width: 359px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.04);
    padding: 16px 8px;
}

.form-body.hide {
    display: none;
}

.form-title {
    display: block;
    margin: 0px;
    font-size: 20px;
    line-height: 1;
    color: #000000;
    font-family: "Helvetica Light", Helvetica, sans-serif;
    font-weight: 300;
    text-align: center;
    letter-spacing: -0.25px;
}

.form-element {
    width: 100%;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-input-row {
    width: 100%;
    display: flex;
    gap: 8px;
}

.form-input-row .form-input {
    flex: 1;
    width: auto;
    min-width: 0;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.04);
    border-radius: 2px;
    padding: 4px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;;
}

.form-input.invalid {
    border: 1px solid #F94040;
}

.form-input.invalid label {
    color: #F94040;
}

.form-input label {
    font-size: 10px;
    letter-spacing: 0.1px;
    font-weight: 400;
    font-family: "Helvetica Light", Helvetica, sans-serif;
    color: #686868;
    line-height: 1.6;
    text-transform: uppercase;
}

.form-input label .required-star {
    color: #000000;
    margin-left: 2px;
}

.form-input input {
    font-size: 16px;
    letter-spacing: 0.12px;
    font-weight: 400;
    font-family: "Helvetica Light", Helvetica, sans-serif;
    color: #181818;
    line-height: 1.2;
    border: 0px;
    box-shadow: none;
    text-transform: uppercase;
    background-color: transparent;
}

.form-input input:focus-visible {
    outline: none;
}

.form-checkboxes {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #000000;
    background-color: #ffffff;
    position: relative;
}

.form-checkbox input[type="checkbox"]:checked {
    background-color: #000000;
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox label {
    font-size: 10px;
    letter-spacing: 0.1px;
    font-weight: 400;
    font-family: "Helvetica Light", Helvetica, sans-serif;
    color: #000000;
    line-height: 1.6;
    text-transform: uppercase;
    cursor: pointer;
    flex: 1;
}

.form-checkbox label .policy-link {
    color: #000000;
    text-decoration: underline;
    cursor: pointer;
}

.form-checkbox label .policy-link:hover {
    text-decoration: none;
}

.form-button.main-button {
    padding: 16px;
}

.form-button.main-button:disabled,
.form-button.main-button.disabled {
    background: #cccccc;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.6;
}

.success-popup {
    width: 100%;
    max-width: 359px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    padding: 16px;
    box-shadow: 0px 0px 12px 0px #0000000A;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease 0s;
}

.success-popup.active {
    opacity: 1;
    pointer-events: all;
    transition: all 0.3s ease 0s;
}

.success-popup-title {
    margin: 0px;
    font-size: 25px;
    line-height: 1;
    color: #000000;
    font-family: "Helvetica Light", Helvetica, sans-serif;
    font-weight: 300;
    text-align: center;
    letter-spacing: -0.25px;
}

.success-popup-text {
    margin: 0px;
    margin-top: 12px;
    font-size: 20px;
    line-height: 1.3;
    color: #000000;
    font-family: "Helvetica Light", Helvetica, sans-serif;
    font-weight: 300;
    text-align: center;
}

/* Policy Modal Styles */
.policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px 8px;
    box-sizing: border-box;
}

.policy-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #ffffff;
    border-radius: 4px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #000000;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    pointer-events: auto;
    user-select: none;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-close:active {
    opacity: 0.5;
}

.modal-title {
    margin: 0;
    padding: 20px 50px 16px 20px;
    font-size: 20px;
    line-height: 1.2;
    color: #000000;
    font-family: "Helvetica Light", Helvetica, sans-serif;
    font-weight: 300;
    text-align: center;
    letter-spacing: -0.25px;
    text-transform: uppercase;
    flex-shrink: 0;
    position: relative;
}

.modal-body {
    padding: 0 20px 20px;
    font-size: 12px;
    line-height: 1.6;
    color: #181818;
    font-family: "Helvetica Light", Helvetica, sans-serif;
    font-weight: 300;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.modal-body h1 {
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    font-weight: 400;
    margin: 0 0 20px 0;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    display: block;
}

.modal-body p {
    margin: 0 0 18px 0;
    text-align: justify;
    hyphens: auto;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

@media(min-width: 375px) {
    .announcement-text {
        font-size: 20px;
    }
}
@media(min-width: 768px) {
    .announcement-bar {
        padding: 12px 0px;
        bottom: 0;
        top: unset;
        background: rgba(255, 255, 255, 0.4);
    }

    .announcement-button {
        display: none;
    }
    
    .announcement-icons {
        display: flex;
    }


    .form-section {
        padding: 20px 8px;
        background-image: url('images/background_old.jpg');
    }
}

@media(max-width: 480px) {
    .form-input-row {
        flex-direction: column;
    }

    .policy-modal {
        padding: 12px 8px;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 2px;
    }

    .modal-title {
        font-size: 18px;
        padding: 16px 50px 12px 16px;
    }

    .modal-body {
        padding: 0 16px 16px;
        font-size: 12px;
        line-height: 1.7;
    }

    .modal-body h1 {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .modal-body p {
        margin-bottom: 16px;
    }

    .modal-body iframe {
        min-height: 400px;
    }

    .modal-close {
        top: 8px;
        right: 8px;
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
}

@media(min-width: 1024px) {

    .announcement-bar-left {
        gap: 16px;
    }

    .announcement-logo {
        flex: 0 0 70px;
        height: 70px;
    }

    .announcement-text {
        font-size: 25px;
        line-height: 1;
    }
}
