/* CSS RESET START */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: "Inter";
    max-width: 100vw;
}

.body-fixed {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app .footer {
  margin-top: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Poppins", sans-serif;
    line-height: 150%;
}

button {
    border: none;
    background: none;
}

p,
span,
strong {
    line-height: 150%;
    color: var(--black);
}

p a {
    color: var(--black);
    text-decoration: none;
}

/* CSS RESET END */

/* BASE STYLES START */

.container {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 44px;
}

.tag {
    height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 100px;
    font-size: 12px;
    color: var(--gray-700);
}

.page-title {
    font-size: 82px;
    line-height: 100%;
    letter-spacing: -3%;
    color: var(--text-color);
    font-style: black;
}

.btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: 0.3s;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.9);
}

.btn:hover {
    opacity: 0.8;
}

.btn.btn-instagram {
    height: 30px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    font-family: var(--font-sf-pro);
    line-height: 16px;
    color: #fff;
    background: var(--instagram-color);
}

.btn.btn-icon {
    min-width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
}

.btn.btn-primary {
    font-weight: 600;
    font-size: 18px;
    background: #007aff;
    height: 48px;
    border-radius: 12px;
    color: #fff;
}

.btn.btn-icon:hover {
    background: #ccc;
}

.custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox p {
    text-align: start;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: var(--gray) !important;
}

.custom-checkbox input {
    display: none;
}

.custom-checkbox input:checked ~ span {
    background: #007aff;
    border-color: #007aff;
}

.custom-checkbox span {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--gray-2);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

.flip-card:hover .flip-card--inner {
    transform: rotateY(180deg);
}

.flip-card.flip-card--no-back:hover .flip-card--inner {
    transform: unset;
}

.flip-card .flip-card--front .poster {
  transition: .3s;
}

.flip-card.flip-card--no-back:hover .flip-card--front .poster {
  cursor: pointer;
  filter: brightness(0.7);
}

.flip-card--inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: 0.3s transform;
    will-change: transform;
}

.flip-card--front,
.flip-card--back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: 0.3s transform;
}

.flip-card {
    --info-title-size: 36px;
    --info-text-size: 18px;

    height: 500px;
    width: 100%;
    transition: .3s;
}

.flip-card--front.bottom {
    background: linear-gradient(0deg, #d9d9d9, #d9d9d9),
        linear-gradient(1.41deg, rgba(0, 0, 0, 0.5) 13.96%, rgba(255, 255, 255, 0) 98.8%);
}

.flip-card--front {
    background: linear-gradient(0deg, #d9d9d9, #d9d9d9),
        linear-gradient(359.54deg, rgba(217, 217, 217, 0) -45.4%, rgba(0, 0, 0, 0.5) 99.62%);
}

.flip-card--front .info {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    color: #fff;
}

.flip-card--front.bottom .info {
    top: unset;
    bottom: 24px;
    left: 24px;
}

.flip-card--front .info h4 {
    color: inherit;
    font-size: var(--info-title-size);
}

.flip-card--front .info p {
    color: inherit;
    font-size: var(--info-text-size);
}

.flip-card--front .poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card--back {
    background: #fff;
    padding: 24px;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.flip-card--back .socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flip-card--back .content__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.flip-card--back .socials a,
.modal .modal-socials a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.15px solid #38388a33;
    font-size: 24px;
    text-decoration: none;
    color: var(--black);
    transition: 0.4s;
}

.flip-card--back .socials a:hover,
.modal .modal-socials a:hover {
    color: var(--white);
    background: var(--black);
}

.modal .modal-socials a:hover {
    background: #f2f2f2;
}

.flip-card--back .content__header h4 {
    font-weight: 700;
    font-size: 36px;
}

.flip-card--back .content__header p {
    font-weight: 600;
    font-size: 18px;
}

.flip-card--back .content__bottom {
    margin-top: auto;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flip-card--back .content__bottom__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flip-card--back .content__bottom__item span,
.flip-card--back .content__bottom__item p {
    font-weight: 700;
    width: 50%;
    color: var(--black);
    font-size: 18px;
}

.flip-card--back .content__bottom__item span {
    opacity: 30%;
}

.flip-card--back {
    transform: rotateY(180deg);
}

.flip-card--back .desc {
    margin-top: 24px;
    font-weight: 600;
    text-align: justify;
    font-size: 16px;
}

.flip-card .content__header__left a {
  color: var(--black);
  text-decoration: none;
}

.select {
    width: 100%;
    position: relative;
}

.selected__item {
    min-width: 100%;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    padding: 0 20px;
    height: 48px;
}

.selected__item span {
    font-weight: 500;
    font-size: 16px;
}

.select__options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 5;
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 5px 10px #00000012;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.select.active .select__options {
    visibility: visible;
    opacity: 1;
}

.select__options button {
    cursor: pointer;
    display: inline-flex;
    align-items: flex-start;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
}

.select__options button:hover {
    background: #f2f2f2;
}

.form {
    width: 100%;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border-radius: 20px;
    background: #fff;
}

.form__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field__label {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
}

.form-field__label .helper-text {
    font-size: 16px;
    color: var(--black-2);
}

.form-field__label .helper-text.error {
    color: var(--error);
}

.form__field {
    width: 100%;
    height: 60px;
    border: none;
    padding: 16px;
    background: #f3f4f5;
    border-radius: 12px;
    font-size: 18px;
    resize: vertical;
}

.form .custom-checkbox {
    margin-top: 24px;
}

.form .form__submit {
    margin-top: 24px;
}

.file-input {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary);
    border-radius: 6px;
    stroke-dashoffset: 14 14;
    background: var(--blue-white);
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s;
    padding: 10px 0;
}

.file-input input {
    display: none;
}

.file-input p {
    font-weight: 600;
    font-size: 16px;
    color: inherit;
}

.file-input:hover {
    background: var(--primary);
    color: var(--white);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 10;
    background: #00000099;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal {
    max-width: 95vw;
    width: 1000px;
    max-height: 85dvh;
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 12;
    display: flex;
    flex-direction: column;

    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;

    visibility: hidden;
    opacity: 0;

    transition: 0.3s;
}

.modal .modal__header {
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    position: sticky;
    z-index: 12;
}

.modal.dragging {
    transition: none;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal .modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 13;
    background: #fff;
    height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0px 2px 10px #00000018;
}

.modal .modal-close i {
    font-size: 24px;
}

.modal .modal-close:hover {
    background: #f2f2f2;
}

.modal .modal__images {
    position: relative;
    width: 100%;
    height: 400px;
    min-height: 400px;
}

.modal .modal__images .swiper-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    padding: 0 24px;
    z-index: 14;
    display: flex;
    justify-content: space-between;
}

.modal .modal__images .swiper-controls button {
    cursor: pointer;
    display: block;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ffffff80;
    border-radius: 4px;
    font-size: 18px;
    backdrop-filter: blur(4px);
    color: #fff;
}

.modal .modal__images .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal__content .modal-title {
    font-weight: 700;
    font-size: 36px;
    color: #1e335c;
}

.modal__content .modal__content-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal__content .modal-desc {
    font-weight: 600;
    font-size: 18px;
    color: var(--black);
}

.modal__content .content-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal__content .content-info__item span {
    color: var(--black);
    opacity: 0.5;
    font-weight: 600;
    font-size: 18px;
}

.modal__content .content-info__item p {
    color: var(--black);
    font-weight: 600;
    font-size: 18px;
}

.form-loading {
    pointer-events: none;
    opacity: 0.7;
}

.form__submit.loading {
    position: relative;
}

.form__submit.loading::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@media screen and (max-width: 1280px) {
    .container {
        padding: 0 22px;
    }

    .modal {
        max-height: 95dvh;
        display: flex;
        flex-direction: column;
        padding: 0 16px 16px 16px !important;
    }

    .modal .modal__header {
        min-height: 23px;
    }

    .modal__images {
        order: 0;
        height: 220px !important;
        min-height: 220px !important;
    }

    .modal__content {
        order: 1;
        margin-bottom: 24px;
    }

}

@media screen and (max-width: 992px) {
  .flip-card--back .desc {
    font-size: 16px;
  }
}

@media screen and (max-height: 768px) {
    .flip-card {
        height: 420px;
    }
}

@media screen and (max-width: 768px) {
    .flip-card:hover .flip-card--inner {
        transform: unset !important;
    }

    .flip-card .flip-card--front .info {
        display: none;
    }

    .flip-card {
        height: 165px;
    }

    .flip-card--front {
        background: linear-gradient(
            359.54deg,
            rgba(217, 217, 217, 0) -45.4%,
            rgba(0, 0, 0, 0.5) 99.62%
        );
    }

    .modal {
        top: unset;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: unset;
        transform: unset;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding: 0 16px 84px 16px;
    }

    .modal__images {
        border-radius: 12px;
        overflow: hidden;
    }

    .modal .modal__header {
        display: block;
        height: max-content;
        order: 2;
    }

    .modal__content {
        margin-top: 12px;
        padding: 0;
    }

    .modal .swiper-controls {
        display: none !important;
    }

    .modal .modal-close {
        position: static !important;
        display: flex;
        align-items: center;
        justify-content: center;
        width: calc(100% - 32px);
        bottom: 24px;
        background: var(--surface-4);
        font-weight: 500;
        margin-top: 0;
        width: 100% !important;
        box-shadow: none;
    }

    .modal .modal-close i {
        display: none;
    }

    .modal__content .modal-title {
        font-size: 22px;
    }

    .modal__content .modal-desc {
        font-weight: 500;
        font-size: 16px;
        color: var(--black-f);
    }


    .modal::before {
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        content: "";
        width: 64px;
        height: 3px;
        border-radius: 10px;
        background: var(--gray-2);
    }

    .modal {
        top: unset;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: unset;
        transform: unset;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding: 23px 16px 64px 16px !important;
    }

    .modal__images {
        border-radius: 12px;
        overflow: hidden;
    }

    .modal .modal__header {
        display: block;
    }

    .modal__content {
        margin-top: 12px;
        padding: 0;
    }

    .modal .swiper-controls {
        display: none !important;
    }

    .modal .modal-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        top: unset;
        right: unset;
        bottom: 24px;
        background: var(--surface-4);
        font-weight: 500;
    }

    .modal .modal-close i {
        display: none;
    }

    .modal__content .modal-title {
        font-size: 22px;
    }

    .modal__content .modal-desc {
        font-weight: 500;
        font-size: 16px;
        color: var(--black-f);
    }

    .modal::before {
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        content: "";
        width: 64px;
        height: 3px;
        border-radius: 10px;
        background: var(--gray-2);
    }
}

/* MESSAGES / NOTIFICATIONS STYLES START */

.messages {
    position: fixed !important;
    top: 100px !important;
    right: 44px !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 400px !important;
    width: auto !important;
}

.message {
    position: relative !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    background: var(--blue) !important;
    animation: slideInRight 0.3s ease-out !important;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out !important;
    min-width: 300px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.message::before {
    content: "";
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.message.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-left: 4px solid #047857 !important;
}

.message.success::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    color: var(--white);
}

.message.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-left: 4px solid #b91c1c !important;
}

.message.error::before {
    content: "✕";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    color: var(--white);
}

.message.info {
    background: linear-gradient(135deg, var(--blue) 0%, #0056d6 100%);
    border-left: 4px solid #0044aa;
}

.message.info::before {
    content: "ℹ";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    color: var(--white);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .messages {
        top: 80px;
        right: 20px;
        left: 20px;
        max-width: none;
    }

    .message {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* MESSAGES / NOTIFICATIONS STYLES END */
