/*Fonts*/

@font-face {
  font-family: 'BrandonGrotesque-Bold';
  src: url('/fonts/BrandonGrotesque-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

div, label, p, a, h1, h2, h3, h4, h5, h6 {
    font-family: 'BrandonGrotesque-Bold', sans-serif;
    font-weight: 700;
}

/*Colors*/


/*Normalise*/

body {
    margin: 0px;
}


/*Banner*/


.banner img.bg-image {
    display: none;

}
.banner img.top-image {
    display: none;

}
.banner img.mobile-image {
    margin: 0px;
    width: 100%;
}

@media (min-width: 1029px) {
    .banner {
        height: 340px;
        width: 100%;
        overflow: hidden;
        background-color: #5F3AA1;

        /* Keeps the base image centered */
        display: flex;
        justify-content: center;
        align-items: center;

        /* Crucial: Sets the coordinate system for the top image */
        position: relative;
    }

    .banner img.mobile-image {
        display: none;

    }


    .banner img.bg-image {
        display: block;
        height: 100%;
        width: 100%;
        max-width: max-content;
        object-fit: cover;
        object-position: center;
    }

    .banner  img.top-image {
        display: block;
        position: absolute;
        /* Dead-centers the top image over the background */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        /* Prevents the top image from overflowing the banner */
        height: 100%;
        width: 100%;
        max-width: max-content;
        object-fit: cover;
        object-position: center;
    }
}


/*how to*/
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

}

.how-to {
    margin-top: 60px;
    border-radius: 25px;
    border: 10px solid #EEB33B;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px;
}

@media screen and (min-width: 1030px) {
    .how-to {
        margin-top: 60px;
        border-radius: 25px;
        border: 10px solid #EEB33B;
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 30px;
    }
}

.how-to div {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media screen and (min-width: 1030px) {
    .how-to div {
        width: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.how-to div p {
    text-align: center;
    font-size: 16px;
}


.how-to .numbers {

    margin-left: -270px ;

    background-color: #9E0062;
    color: white;

    font-size: 40px;
    width: 70px;
    height: 70px;
    border-radius: 40px;

    /*text centering*/
    display: flex;
    justify-content: center; /* Horizontally centers the text */
    align-items: center;     /* Vertically centers the text */
}

@media screen and (min-width: 1030px) {
    .how-to .numbers {
        margin-left: 0px ;
        margin-top: -70px ;

    }
}

.how-to img {
    margin-top: -20px;
}

@media screen and (min-width: 1030px) {
    .how-to img {
        margin-top: 20px;
    }
}

/*Shops*/
.shops-section {
    margin-top: 60px;
    width: 100%;
    padding-top: 20PX;
    background-color: #E8E8E8;
}

.shops {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: #E8E8E8;
    padding-bottom: 15px;
}

@media screen and (min-width: 1030px) {
    .shops {
        margin-top: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 80px;
        background-color: #E8E8E8;
    }
}
.shops .subline{
    color: #351B4F;
    margin-top: -5px;
    display: flex;
    align-items: center;
}

.shops img {
    display: block;      /* Changes from inline to block to remove text spacing */
    height: 70px;
    width: auto;         /* Maintains original image proportions */
}

.shops a {
  display: flex;       /* Collapses extra inline text-line padding */
}

/*form -> form css*/

/*ad-section*/

    .ad-section {
        margin-top: 100px;
        padding-top: 100px;

        width: 100%;
        background-color: #351B4F ;

        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

.ad-container {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

@media screen and (min-width: 1150px) {
    .ad-container {
        max-width: 1000px;
        display: flex;
        flex-direction: row;
            align-items: start;
        gap: 60px;
    }
}

.ad-container img{
    height: 200px;
}

@media screen and (min-width: 550px) {
.ad-container img{
    height: 320px;
}
}
@media screen and (min-width: 1150px) {
    .ad-container img{
        height: 500px;
    }
}
/* prdouct links*/


.product-links {
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.product-links img {
    height: 80px;
}



.product-links p {
    font-size: 24px;
    color: white;
}


.productlink-btn img {
  display: block;      /* Changes from inline to block to remove text spacing */
  height: 60px;        /* Force all store logos to be the exact same height */
  width: auto;         /* Maintains original image proportions */
}


.productlink-btn a {
  display: flex;       /* Collapses extra inline text-line padding */
}

.productlink-btn {
    margin-top: 10px;
    width: 140px;

    background-color: white;

    border-radius: 25px;

    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: -10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/*legal links*/

footer {
    width: 100%;
    background-color: #351B4F ;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-links {
    padding: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    padding-top: 60px;
    gap: 30px;
    padding-bottom: 40px;
}

@media screen and (min-width: 1150px) {
    .footer-links {
        width: 1000px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        padding-bottom: 40px;
    }
}

.footer-links a {
    color: #ffffff;            /* Makes the link text white */
    text-decoration: none;     /* Removes the default browser underline */
}

.footer-links a:hover {
  text-decoration: underline; /* Adds the underline back only on hover */
}


/****************************************/
/*************** FORM CSS ***************/

.form-section {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}


form {
    padding: 20px;
}



.form-section h1 {
    font-size: 42px;
    color: #351B4F;
    text-align: center;
}



@media screen and (min-width: 1030px) {
    .form-section h1 {
        font-size: 64px;
        color: #351B4F;
        margin: 60px;
        text-align: center;
    }
}

.form-email input {
    display: flex;
    flex-direction: column;
    background-color: #E8E8E8;

    padding: 10px;
    height: 20px;
    width: 98%;

    border: none;
    appearance: none;
    border-radius: 20px;
}


/* File Upload BTN*/
/* Upload area */

.form-upload {
    margin-top: 20px;
}

.upload-bg {
    position: relative;

    height: 300px;
    border-radius: 20px;
    background-color: #E8E8E8;

    display: flex;
    justify-content: center;
    align-items: center;
}


/* Hide the real file input */

.upload-bg > input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}


/* The visual upload button */

.image-btn {
    width: 200px;
    height: 200px;

    border-radius: 20px;

    background-color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}


/* Upload icon */

.image-btn img {
    width: 80px;
    height: 70px;
    object-fit: contain;
}


/* Text */

.image-btn p {
    margin: 15px 0 0;
    font-size: 20px;
    color: #351B4F;
}


/* Hover */

.image-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


/* Keyboard accessibility */

.image-btn:focus-within {
    outline: 3px solid #9E0062;
    outline-offset: 4px;
}


/* Error state */

.form-upload:has(input.has-error) .upload-bg {
    border: 2px solid #9E0062;
}

.image-btn.uploaded {
    border: 3px solid #9E0062;
}

.image-btn.uploaded p {
    color: #9E0062;
    text-align: center;
    word-break: break-word;
    padding: 10px;
}

@media screen and (max-width: 799px) {

    .upload-bg {
        height: 400px;
    }

    .image-btn {
        width: 150px;
        height: 150px;
    }

    .image-btn img {
        width: 60px;
        height: 55px;
    }

    .image-btn p {
        font-size: 17px;
    }

}



/*AGBS Checkboxes */

.agbs-check {
    margin-top: 20px;
}


.agbs-check div {
    display: flex;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 0px;
}

.agbs-check a {
    text-decoration: none;     /* Removes the default browser underline */
}

.agbs-check p {
    font-size: 14px;
    margin: 0;          /* Kills the hidden vertical space paragraphs create */
    line-height: 1.2;   /* Ensures text height doesn't bloat the row size */
}

.agbs-check a:hover {
  text-decoration: underline; /* Adds the underline back only on hover */
}


/* FORM CTA*/

.form-section .cta {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-section .cta button{
    width: 240px;
    height: 70px;
    border-radius: 16px;

    background-color: #9E0062;
    color: white;
    font-size: 32px;
    border-style: none;

    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

@media screen and (min-width: 1030px) {
    .form-section .cta button{
        width: 400px;
        height: 70px;
        border-radius: 16px;

        background-color: #9E0062;
        color: white;
        font-size: 32px;
        border-style: none;

        margin-top: 20px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
}

/*BTN STATES*/


.form-section .cta button {
    transition: background-color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.form-section .cta button:hover {
    background-color: #7F004F;
}

.form-section .cta button:active {
    transform: scale(0.98);
}

.form-section .cta button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/***************************/
/********** ADDED **********/

/* Error messages hidden by default */
.form-error {
    display: none;
    margin: 6px 0 0 10px;
    font-size: 14px;
    color: #9E0062;
}


/* Email error */
.form-email input.has-error {
    border: 2px solid #9E0062;
}

.form-email input.has-error + .form-error {
    display: block;
}


/* Upload error */
.form-upload:has(input.has-error) .upload-bg {
    border: 2px solid #9E0062;
}

.form-upload:has(input.has-error) > .form-error {
    display: block;
}

/* Checkbox error */
.agbs-check:has(input.has-error) .form-error {
    display: block;
}

.status-success {
    margin-top: 60px;
    color: #7F004F;
}

.whats-next{
    font-size: 16px;
}
