@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'LagunaC';
    src: url('fonts/lagunac.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'LagunaC';
    src: url('fonts/lagunac_bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'LagunaC';
    src: url('fonts/lagunac_italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #e5e5e5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Geologica', sans-serif;
}

.card-outer {
    max-width: 500px;
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
}

.card-inner {
    width: 375px;
    padding: 12px 30px 50px 30px;
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    width: 167px;
    height: auto;
    display: block;
}

.avatar-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.avatar {
    width: 240px;
    height: 240px;
    border-radius: 20px;
    object-fit: cover;
}

.social-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.social-circle {
    width: 40px;
    height: 40px;
    background: #C23A3C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.social-circle:hover {
    opacity: 0.8;
}

.social-circle a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.social-circle img {
    width: 18px;
    height: 18px;
    display: block;
}

h1 {
    font-family: 'Geologica';
    font-weight: 400;
    font-size: 20.7784px;
    line-height: 21px;
    text-transform: uppercase;
    color: #C23A3C;
    margin-bottom: 5.89px;
}

.eng-name {
    font-family: 'Geologica';
    font-weight: 300;
    font-size: 13px;
    line-height: 13px;
    color: #67686B;
    margin-bottom: 30px;
}

.divider {
    border-top: 1.5px solid #000000;
    margin: 20px 0;
    background: none;
    height: 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-circle {
    width: 46px;
    height: 46px;
    border: 1.5px solid #C23A3C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle img {
    width: 20px;
    height: 20px;
    display: block;
}

.contact-text {
    font-family: 'Geologica';
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-text:hover {
    opacity: 0.7;
}

.contact-row span.contact-text {
    cursor: default;
}

.contact-row a.contact-text {
    cursor: pointer;
}

.btn {
    width: 315px;
    height: 63px;
    background: #C23A3C;
    border-radius: 38.5px;
    border: none;
    font-family: 'Geologica';
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    text-align: center;
    display: block;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.85;
}

.social-right .social-circle:nth-child(2) img {
    width: 18px;
    height: 18px;
    margin-right: 2px;
}

.social-right .social-circle:nth-child(2):hover {
    opacity: 0.8;
}

.form-header {
    margin-bottom: 30px;
}

.form-logo {
    width: 167px;
    height: auto;
    display: block;
}

.form-title {
    font-family: 'LagunaC', 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 30px;
    text-transform: uppercase;
    text-align: center;
    color: #000000;
    margin-bottom: 23px;
}

.form-group {
    margin-bottom: 23px;
}

.form-label {
    font-family: 'Geologica';
    font-weight: 300;
    font-size: 14px;
    line-height: 23px;
    color: #000000;
    display: block;
    margin-bottom: 12px;
}

.form-input {
    width: 100%;
    background: #F9F9F9;
    border: none;
    border-radius: 31.5px;
    padding: 23px 24px 23px 21px;
    font-family: 'Geologica';
    font-weight: 300;
    font-size: 13px;
    line-height: 16px;
    color: #000000;
    outline: none;
}

.form-textarea {
    width: 100%;
    background: #F9F9F9;
    border: none;
    border-radius: 31.5px;
    padding: 20px 24px;
    font-family: 'Geologica';
    font-weight: 300;
    font-size: 13px;
    line-height: 16px;
    color: #000000;
    outline: none;
    resize: none;
    height: 63px;
    max-height: 63px;
}

.form-textarea::-webkit-resizer {
    display: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #B4B4B4;
}

.form-submit {
    width: 277px;
    height: 73px;
    background: #C23A3C;
    border-radius: 36.3px;
    border: none;
    font-family: 'Geologica';
    font-weight: 400;
    font-size: 18.86px;
    line-height: 24px;
    color: #FFF2E9;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-bottom: 16px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.form-submit:hover {
    opacity: 0.85;
}

.form-back {
    width: 277px;
    height: 73px;
    background: transparent;
    border: 1px solid #000000;
    border-radius: 36.3px;
    font-family: 'Geologica';
    font-weight: 400;
    font-size: 18.86px;
    line-height: 24px;
    color: #000000;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.form-back:hover {
    opacity: 0.7;
}

#formBlock {
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    pointer-events: none;
}

#formBlock.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

#visitCardBlock {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

#visitCardBlock.hide {
    opacity: 0;
    transform: translateX(15px);
    pointer-events: none;
}

.form-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 26px 0;
}

.form-checkbox__input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.form-checkbox__label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Geologica';
    font-weight: 300;
    font-size: 12px;
    line-height: 13px;
    color: #000000;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.form-checkbox__box {
    position: relative;
    width: 25px;
    height: 25px;
    border: 1.5px solid #000000;
    border-radius: 4px;
    background: transparent;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.form-checkbox__box svg {
    width: 23px;
    height: 23px;
    position: absolute;
    z-index: 1;
}

.form-checkbox__box svg path {
    stroke: #000000;
    stroke-width: 1.5;
    fill: none;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    opacity: 0;
    transition: stroke-dashoffset 0.25s cubic-bezier(0.4, 0, 0.23, 1), opacity 0.2s ease;
}

.form-checkbox__input:checked~.form-checkbox__label .form-checkbox__box svg path {
    animation: drawCheck 0.35s cubic-bezier(0.4, 0, 0.23, 1) 0.1s forwards;
}

.form-checkbox__input:not(:checked)~.form-checkbox__label .form-checkbox__box svg path {
    animation: eraseCheck 0.35s cubic-bezier(0.4, 0, 0.23, 1) forwards;
}

@keyframes drawCheck {
    0% {
        stroke-dashoffset: 30;
        opacity: 0;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes eraseCheck {
    0% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 30;
        opacity: 0;
    }
}

.btn-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
    box-sizing: border-box;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.privacy-link {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-link:hover {
    color: #C23A3C;
}

button,
button:focus,
button:active,
.form-submit,
.form-submit:focus,
.form-submit:active,
.form-back,
.form-back:focus,
.form-back:active,
.form-checkbox__input,
.form-checkbox__input:focus,
.form-checkbox__input:active {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}



.error-text {
    color: #ff4d77 !important;
}

.error-text::placeholder {
    color: #ff4d77 !important;
}

.form-checkbox__input.error {
    border-color: #ff4d77 !important;
}

.form-checkbox__input.error+.form-checkbox__label .form-checkbox__box {
    border-color: #ff4d77 !important;
}

.form-checkbox__input.error~.form-checkbox__label span:last-child {
    color: #ff4d77 !important;
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #F9F9F9 inset !important;
    -webkit-text-fill-color: #000000 !important;
    transition: background-color 5000s ease-in-out 0s;
    background-color: #F9F9F9 !important;
}

input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}

@media (max-width: 768px) {
    body {
        background: #ffffff;
    }
}

