@font-face {
    font-family: 'regular';
    src: url(./fonts/FbRimona-Regular.ttf)
}
@font-face {
    font-family: 'bold';
    src: url(./fonts/FbRimona-Bold.ttf)
}
@font-face {
    font-family: 'black';
    src: url(./fonts/FbRimona-Black.ttf)
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'regular', sans-serif;
}

main {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.top {
    width: 100%;
    aspect-ratio: 750 / 641;
    background-image: url('./images/bg-mob.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5vw;
    position: relative;
}

.titles {
    text-align: center;
    width: 100%;
}

.title {
    width: 74.13vw;
}

h1 {
    font-family: 'regular';
    font-size: 6vw;
    color: white;
    text-shadow: 2px 0px #67230A;
}

.subtitles {
    margin-top: 1vw;
}

h2 {
    font-family: 'regular';
    font-size: 4vw;
    color: white;
    text-shadow: 2px 1px #67230A;
}

.multiple-images {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.logo1, .logo2, .logo3, .ferrero-logo {
    position: absolute;
    object-fit: contain
}

.logo1 {
    width: 14vw;
    left: 4vw;
    top: 40vw;
    transform: rotateY(180deg);
}
.logo2 {
    width: 16vw;
    left: 7vw;
    top: 51vw;
}
.logo3 {
    width: 17vw;
    left: 14vw;
    top: 62vw;
}

.illustration {
    font-size: 1.5vw;
    position: absolute;
    bottom: 6vw;
    left: 1.5vw;
    color: white;
    text-shadow: 1px 0px #67230A
}

.hanukia {
    width: 39vw;
    object-fit: contain;
}

.ferrero-logo {
    width: 18vw;
    right: 8vw;
    top: 3vw;
}

.bottom {
    background-color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3vw;
    gap: 4vw;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 3vw;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 3vw;
}

textarea { 
    resize: none;
    user-select: text;
}

textarea::placeholder, input::placeholder {
    color: #67230A;
    text-align: right;
}

.description, .fullname, .phone {
    border: 2px solid #DABA72;
    padding: 2vw;
    font-family: 'regular';
    font-size: 2.5vw;;
}

h4 {
    color: #67230A;
    font-size: 3vw;
}

.checkbox-group {
    display: flex;
    gap: 2vw;

}

input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none; 
    width: 6vw;
    height: 6vw;
    accent-color: #DABA72;
    border: 2px solid #DABA72;
    cursor: pointer;
    align-self: center;
    position: relative;
}

input[type="checkbox"]:checked::after {
    content: "✔";
    color: #DABA72;
    font-size: 5.5vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

span {
    align-self: center;
    color: #67230A;
    font-family: 'regular';
    font-size: 3vw;
}

button {
    width: fit-content;
    align-self: center;
    background: linear-gradient(49deg,rgba(181, 132, 44, 1) 0%, rgba(252, 247, 175, 1) 50%, rgba(205, 165, 87, 1) 100%);
    border:unset;
    border-radius: 4vw;
    padding: 2vw;
    padding-inline: 7vw;
    font-family: 'black';
    color: #67230A;
    font-size: 4vw;
    cursor: pointer;
}

.bottom-logos {
    display: flex;
    flex-direction: column;
    gap: 4vw;
}

.rami-levi, .shufersal {
    width: 40vw;
    object-fit: contain;    
}

h3 {
    font-size: 5vw;
    color: #67230A;
    text-align: center;
    font-family: 'bold';
}

.terms {
    font-family: 'regular';
    color: #67230A;
    font-size: 3vw;
    text-align: center;
}

a {
    color: #67230A;
    text-decoration: underline;
}

@keyframes ferrero-shake {
    0%   { transform: translate(0, 0) rotate(0deg); }
    15%  { transform: translate(-2px, 2px) rotate(-2deg); }
    30%  { transform: translate(2px, -2px) rotate(2deg); }
    45%  { transform: translate(-3px, 1px) rotate(-1.5deg); }
    60%  { transform: translate(1px, -3px) rotate(1deg); }
    75%  { transform: translate(-1px, 2px) rotate(-2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.hanukia2 {
    animation: flicker 1.5s infinite;
}

.hanukia1 {
    position: absolute;
}

.hanukia2 {
    position: relative;
}

@keyframes flicker {
  0%, 100% { filter: brightness(1); }
  25% { filter: brightness(1.1); }
  50% { filter: brightness(0.9); }
  75% { filter: brightness(1.05); }
}

/* Thanks Page Styles */
.bottom-thanks {
    background-color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3vw;
    gap: 3vw;
}
.thanks-title {
    text-align: center;
    font-size: 7vw;
    color: #67230A;
    font-family: 'bold';
}
.thanks-content {
    text-align: center;
    width: 80vw;
    font-size: 5vw;
    color: #67230A;
    padding: 1vw;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right, rgba(0, 0, 0, 0), #DABA72, rgba(0, 0, 0, 0)) 1;
}
.multiple-images-thanks {
    width: 100%;
    margin-top: 8vw;
    display: flex;
    justify-content: space-around;
}
/* End Thanks Page Styles */

.general-error {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4444;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    max-width: 90%;
    text-align: center;
}

.mobile { display: flex; }
.desktop { display: none; }

@media (min-width: 768px) {
    .top {
        aspect-ratio: 1920 / 362;
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .titles {
        width: 70%;
    }

    .title {
        width: 28.96vw;
    }

    h1 {
        font-size: 2.5vw;
    }

    h2 {
        font-size: 1.7vw;
    }

    .hanukia {
        width: 15vw;
        margin-top: 2vw;
        margin-left: 20vw;
    }

    .ferrero-logo { 
        width: 7vw;
        left: 1vw;
        right: unset;
        top: -9vw;
    }

    .logo1 {
        width: 5vw;
        left: 72vw;
        top: 6vw;
        transform: unset;
    }
    .logo2 {
        width: 6vw;
        left: 69vw;
        top: 9vw;
        transform: rotateY(180deg);
    }
    .logo3 {
        width: 6vw;
        left: 64.5vw;
        top: 11vw;
        transform: rotateY(180deg);
    }

    .illustration {
        font-size: 1vw;
        bottom: 2vw;
        left: unset;
        right: 20vw;
    }

    .bottom {
        padding: 2vw;
        padding-inline: 20.31vw;
        gap: 2vw;
    }

    form {
        gap: 1vw;
    }

    .input-group {
        flex-direction: row;
        width: 100%;
    }

    .input-group * {
        width: 100%;
    }

    .description, .fullname, .phone {
        font-size: 1vw;
        padding: 1vw;
        border: 3px solid #DABA72;
    }

    h4 {
        font-size: 1vw;
    }

    .checkbox-group {
        gap: 0.5vw;
    }

    input[type="checkbox"] {
        width: 1.3vw;
        height: 1.3vw;
        border: 3px solid #DABA72;
    }
    input[type="checkbox"]:checked::after {
        font-size: 1.1vw;
    }

    span {
        font-size: 1vw;
    }

    button {
        border-radius: 4vw;
        padding: 0.5vw;
        padding-inline: 3vw;
        font-size: 1.4vw;
    }

    .bottom-logos {
        flex-direction: row;
        gap: 2vw;
    }

    .rami-levi, .shufersal {
        width: 14vw;
    }

    h3 {
        font-size: 1.6vw;
    }

    .terms {
        font-size: 1.3vw;
        text-align: right;
        align-self: flex-start;
    }

    /* Thanks Page Styles */
    .bottom-thanks {
        padding: 2vw;
        gap: 1vw;
    }
    .thanks-title {
        font-size: 3vw;
    }
    .thanks-content {
        width: 28vw;
        font-size: 2vw;
        padding: 1vw;
        border-top: 1px solid transparent;
        border-bottom: 1px solid transparent;
    }
    .multiple-images-thanks {
        width: 100%;
        margin-top: 8vw;
    }
    /* End Thanks Page Styles */

    .mobile { display: none; }
    .desktop { display: flex; }
}
