    /* body { font-family: Arial; max-width: 800px; margin: auto; padding: 20px; } */
    .highlight { color: #d60000; font-weight: bold; }
    /* .success { background: #e0ffe0; padding: 20px; border: 1px solid #a0cfa0; margin-top: 30px; }
    .error { background: #ffe0e0; padding: 20px; border: 1px solid #cfa0a0; margin-top: 30px; } */
    

/* Header and Footer */
@font-face {
  font-family: 'Days One Regular';
  src: url('../fonts/DaysOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Gotham Pro';
  src: url('../fonts/GOTHAMPRO-MEDIUM.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
}

body {
    margin: 0;
}

header {
    padding: 18px 0;
    box-shadow: 0 5px 10px 2px rgba(34, 60, 80, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    width: 58px;
    height: auto;
}

.header-tel {
    background-color: #0078FF;
    font-family: "Days One Regular", sans-serif;
    font-size: 18px;
    font-weight: 400;
    transition-duration: 300ms;
    border-radius: 20px 20px 20px 20px;
    padding: 9px 27px 9px 27px;
    color: #fff;
    text-decoration: none;
}

.header-tel:hover {
    background-color: #0063D3;
}

.footer {
    background: #004299;
    border-radius: 25px 25px 0 0;
}

.footer-top {
    padding: 55px 0 58px;
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: #FFFFFF;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 20px;
}

.footer-top > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px 0;
}

.footer-top h4 {
    font-family: "Days One Regular", sans-serif;
    font-size: 38px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0;
    text-align: center;
}

.footer-icon-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 12px;
}

.footer-icon-block svg {
    width: 65px;
    height: auto;
}

.footer-icon-block a, .footer-icon-block p {
    font-family: "Days One Regular", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 36px;
    color: #FFFFFF;
    text-decoration: none;
    margin: 0;
}

.footer-socials-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 25px;
}

.footer-socials-block a {
    background: #fff;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    transition: 200ms linear;
}

.footer-socials-block a:hover {
    background: #6091D2;
}

.footer-socials-block svg {
    width: auto;
    height: 21px;
    fill: #004299;
}

.footer-bottom {
    padding: 59px 0 38px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 44px 0;
}

.footer-bottom p {
    font-size: 14px;
    font-weight: 400;
    font-family: 'Gotham Pro', sans-serif;
    line-height: 18px;
    color: #FFFFFF;
    margin: 0;
}

/* Agreement Section */
.agreement-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 55px 0;
}

.agreement-section h1 {
    font-size: 38px;
    font-weight: 400;
    font-family: "Days One Regular", sans-serif;
    margin: 0 0 14px;
    color: #0077FF;
    text-align: center;
}

.agreement { 
    background: #f9f9f9;
    padding: 20px;
    max-width: 80%;
    margin-top: 30px;
    border-left: 4px solid #0077FF;
    border-radius: 6px;
    line-height: 1.6;
    max-height: 500px;
    overflow-y: scroll;
}

.agreement table:nth-last-of-type(1) {
    width: 100%;
}

.agreement table:nth-last-of-type(1) tr > td:nth-last-of-type(1) {
    float: right;
}

.agreement h2, .agreement h3 { 
    margin-top: 0; 
    color: #0077FF; 
}

.agreement ul { 
    padding-left: 20px;
}

.btn {
    width: fit-content;
    padding: 25px 35px;
    cursor: pointer;
    background: linear-gradient(180deg, #004799 20%, #0077FF 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    font-family: "Days One Regular", sans-serif;
    border-radius: 15px;
    transition: all 300ms ease;
    border: 0;
    text-decoration: none;
    margin-top: 30px;
}

.btn:hover {
    background: linear-gradient(180deg, #0077FF 0%, #004799 80%);
}

.success {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px 0;
}

.success h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 400;
    font-family: "Days One Regular", sans-serif;
    text-align: center;
}

.success p {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    font-family: 'Gotham Pro', sans-serif;
    background: #a0cfa0;
    color: white;
    padding: 20px 35px;
    border-radius: 15px;
}

.success a {
    margin-top: 0;
}

.error {
    width: fit-content;
}

.error p {
    margin: 100px auto;
    font-size: 20px;
    font-weight: 400;
    font-family: 'Gotham Pro', sans-serif;
    background: #ff6464;
    color: white;
    padding: 20px 35px;
    border-radius: 15px;
    text-align: center;
}

/* Record */
.record h1 {
    font-size: 38px;
    font-weight: 400;
    font-family: "Days One Regular", sans-serif;
    margin: 0 0 14px;
    color: #0077FF;
}

.record main {
    display: flex;
    flex-direction: column;
    gap: 30px 0;
    align-items: center;
    padding: 55px 0;
}

.error-message {
    width: 60%;
    margin: 20px auto 80px;
    font-size: 20px;
    font-weight: 400;
    font-family: 'Gotham Pro', sans-serif;
    background: #ff6464;
    color: white;
    padding: 20px 35px;
    border-radius: 15px;
    text-align: center;
}

/* Container Styles */
.container {
    width: 100%;
    max-width: 1536px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    /* transform: translate(-50%, -50%);
    top: 50%;
    left: 50%; */
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 40vw;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 30px 0 #00000040;
    display: flex;
    flex-direction: column;
    gap: 25px 0;
    padding: 25px 35px;
    align-items: flex-end;
}

.modal-content form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px 0;
}

.modal-content .close-btn {
    cursor: pointer;
}

.modal-content form input {
    padding: 28px 39px;
    font-size: 20px;
    font-weight: 400;
    font-family: "Days One Regular", sans-serif;
    color: #000;
    border: 3px solid #0000003B;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
}

#myidForm > button {
    margin-top: 15px;
}

#myidForm input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #007bff; /* Цвет галочки */
    vertical-align: middle;
    margin-right: 8px;
    cursor: pointer;
}

#myidForm label {
    font-family: "Days One Regular", sans-serif;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}

#submitButton:disabled {
    background: #cccccc !important;
    cursor: not-allowed;
    color: #666;
}

.formTerm {
    margin: 10px 0;
}

/** Policy Main */

.policy-main {
    padding: 55px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.policy-main > h1 {
    font-size: 38px;
    font-weight: 400;
    font-family: "Days One Regular", sans-serif;
    margin: 0 0 14px;
    color: #0077FF;
    text-align: center;
}

.policy-main > div {
    background: #f9f9f9;
    padding: 20px;
    max-width: 80%;
    margin-top: 30px;
    border-left: 4px solid #0077FF;
    border-radius: 6px;
    line-height: 1.6;
    max-height: 500px;
    overflow-y: scroll;
}

@media (max-width: 1536px) {
    .container {
        max-width: 1280px;
    }
}

@media (max-width: 1280px) {
    .container {
        max-width: 1024px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 768px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 640px;
    }
}

@media (max-width: 640px) {
    .container {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Mobile Adaptation */

@media screen and (max-width: 1280px) {
    .modal-content form input {
        padding: 20px 25px;
        font-size: 16px;
    }
}

@media screen and (max-width:1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px 0;
    }

    .footer-top > div {
        gap: 15px 0;
    }

    .footer-top h4 {
        font-size: 24px;
    }

    .footer-icon-block svg {
        width: 45px;
    }

    .footer-icon-block a, .footer-icon-block p {
        font-size: 18px;
    }

    .error p {
        margin: 20px auto 30px;
    }

    .btn {
        padding: 15px 25px;
        font-size: 18px;
    }

    .error-message {
        margin: 20px auto 30px;
    }

    .modal-content form input {
        padding: 12px 20px;
        font-size: 12px;
    }

    .close-btn svg {
        width: 15px;
        height: auto;
    }
}


@media screen and (max-width:540px) {
    .header-logo {
        width: 40px;
    }

    .header-tel {
        font-size: 14px;
    }

    header {
        padding: 12px 0;
    }

    .footer-top {
        padding: 35px 0 38px;
        gap: 30px 0;
    }

    .footer-top h4 {
        font-size: 22px;
    }

    .footer-icon-block svg {
        width: 35px;
    }

    .footer-icon-block a, .footer-icon-block p {
        font-size: 14px;
        line-height: normal;
    }

    .footer-socials-block svg {
        height: 15px;
    }

    .footer-socials-block a {
        width: 32px;
        height: 32px;
    }

    .footer-bottom {
        padding: 39px 0 28px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .agreement-section h1 {
        font-size: 25px;
    }

    .error p {
        font-size: 16px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .agreement h2, .agreement h3 {
        font-size: 18px;
    }

    .success {
        width: 100%;
    }

    .success p {
        font-size: 14px;
    }

    .success h2 {
        font-size: 20px;
    }

    .record h1 {
        font-size: 25px;
    }

    .error-message {
        margin: 0 auto;
        width: 80%;
        font-size: 16px;
        padding: 10px 25px;
    }

    .modal-content {
        width: 80vw;
    }

    .formTerm {
        margin: 0;
    }

    .policy-main > h1 {
        font-size: 25px;
    }

    .policy-main h2, .policy-main h3 {
        font-size: 18px;
    }
}

@media screen and (max-width:440px) {
    .footer-icon-block a, .footer-icon-block p {
        font-size: 12px;
    }

    .footer-icon-block svg {
        width: 30px;
    }

    .footer-icon-block {
        gap: 0 5px;
    }
}