﻿/* Global resets (form-focused subset) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'SFPRODISPLAY';
    src: url('../webfonts/SFPRODISPLAYBOLD.OTF');
    font-weight: 700;
}

@font-face {
    font-family: 'SFPRODISPLAY';
    src: url('../webfonts/SFPRODISPLAYMEDIUM.OTF');
    font-weight: 500;
}

@font-face {
    font-family: 'SFPRODISPLAY';
    src: url('../webfonts/SFPRODISPLAYREGULAR.OTF');
    font-weight: 400;
}

/* Base body/typography for form pages (safe default; layout may override) */
.memzo-form-area {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    font-family: 'SFPRODISPLAY', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: transparent; /* allow page-level background */
    color: #000;
}

/* DOUBLED WIDTH: increased max-width from 800px → 1600px
   Use a responsive width so it scales down on smaller screens. */
.memzo-form-item {
    padding: 20px 40px;
    max-width: 1600px; /* doubled */
    width: 90%;
    margin: 0 auto;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(96, 96, 96, 0.05) 100%);
    box-shadow: 0 25px 25px 0 rgba(0, 0, 0, 0.25);
}

    /* Headings inside form block */
    .memzo-form-item h3 {
        color: #000;
        font-size: 20px;
        font-weight: 500;
        line-height: 160%;
        letter-spacing: 1px;
        display: flex;
        align-items: center;
        margin-left: 6px;
        margin-bottom: 10px;
    }

    .memzo-form-item h2 {
        color: #4D4D4D;
        font-size: 40px;
        font-weight: 700;
        line-height: 130%;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .memzo-form-item h4 {
        color: #000;
        text-align: center;
        font-size: 16px;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: 0.8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
    }

        .memzo-form-item h4::before,
        .memzo-form-item h4::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid rgba(0, 0, 0, 0.25);
        }

        .memzo-form-item h4::before {
            margin-right: 46px;
        }

        .memzo-form-item h4::after {
            margin-left: 49px;
        }

/* Icon area (optional) */
.memzo-form-item-icon ul {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 14px;
}

    .memzo-form-item-icon ul li a {
        width: 68px;
        height: 68px;
        margin: 0 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1.2px solid #FFF;
        background: linear-gradient(181deg, #EAEAEA 40.59%, #B8B8B8 245.53%);
        box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.10) inset, 0 3px 6px 0 rgba(0, 0, 0, 0.09) inset;
        border-radius: 50%;
    }

        .memzo-form-item-icon ul li a img {
            max-width: 100%;
            border-radius: 50%;
            background: linear-gradient(359deg, #9D9D9D 8.63%, #F7F7F7 89.19%);
            box-shadow: 0 -10px 14px 0 rgba(0,0,0,0.16) inset, 0 15px 16px 0 rgba(20,20,20,0.42);
        }

        .memzo-form-item-icon ul li a:hover {
            transform: translateY(-10px);
        }

/* Form rows and label alignment (re-usable) */
.memzo-form-row {
    margin-bottom: 1rem;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
}

    .memzo-form-row .col-form-label {
        margin-bottom: 0;
    }

    /* Show inputs at a visual width of ~50 characters while allowing more text.
   Use 'width: 50ch' with 'max-width: 100%' so the control displays 50ch by default
   but will not overflow its container on narrow screens and can accept longer input. */
    .memzo-form-row .form-control,
    .memzo-form-row select.form-control,
    .memzo-form-row select.form-select,
    .memzo-form-row textarea.form-control {
        width: 50ch; /* visual width ~50 characters */
        max-width: 100%; /* shrink to container width on small viewports */
        box-sizing: border-box;
    }

/* Input & select styling */
.memzo-form-item input,
.memzo-form-item select,
.memzo-form-item textarea {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.8px;
    display: block;
    align-items: center;
    width: 100%;
    height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(0, 0, 0, 0.20);
    background: rgba(255, 255, 255, 0.25);
    margin-bottom: 10px;
    border-radius: 10px;
    transition: 0.4s all ease;
}

/* Make textareas taller so they match the larger form */
.memzo-form-item textarea {
    min-height: 300px; /* increased height */
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
}

    /* Focus styles */
    .memzo-form-item input:focus,
    .memzo-form-item textarea:focus,
    .memzo-form-item select:focus {
        border-color: #5131E6;
        box-shadow: 0 0 25px 0 rgba(32, 84, 255, 0.25);
    }

/* Small helpers */
.memzo-form-item-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 20px;
}

.memzo-form-item-password {
    position: relative;
}

    .memzo-form-item-password input {
        padding-right: 40px;
    }

.memzo-form-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #797979;
}

/* Validation styling */
.memzo-form-field-validation {
    display: block;
    margin-top: .25rem;
    color: #dc3545;
}

/* Small text blocks */
.memzo-form-item h6 {
    color: #000;
    font-size: 12px;
    font-weight: 400;
    line-height: 266.667%;
    letter-spacing: 0.6px;
    margin-top: -5px;
}

    .memzo-form-item h6::before {
        content: '';
        width: 100%;
        height: 5px;
        display: block;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.08);
        background: rgba(0,0,0,0.50);
    }

/* Secondary block */
.memzo-form-item-second {
    padding-top: 25px;
}

    .memzo-form-item-second ul {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

        .memzo-form-item-second ul li {
            margin: 0 10px 10px;
        }

            .memzo-form-item-second ul li span {
                font-size: 18px;
                font-weight: 400;
                color: #818181;
                letter-spacing: 5%;
            }

/* CTA/button styling
   — submit button centered and sized to match the textarea visual width (50ch),
   but constrained to container on small viewports. */
.memzo-form-item-button {
    position: relative;
    z-index: 99;
    display: flex;
    justify-content: center; /* center button horizontally */
}

    /* decorative pseudo-element retained */
    .memzo-form-item-button::after {
        content: '';
        position: absolute;
        width: 281px;
        height: 87px;
        opacity: 0.7;
        background: rgba(255,255,255,0.50);
        filter: blur(20px);
        left: -27px;
        bottom: 25px;
        border-radius: 281px;
        pointer-events: none;
    }

    /* override generic button width — make submit match textarea visual width */
    .memzo-form-item-button > button {
        padding: 5px;
        border: none;
        width: 50ch; /* visual width ~= textarea */
        max-width: 100%; /* shrink on small screens */
        background: rgba(255,255,255,0.15);
        box-shadow: 0 0 4px 0 rgba(0,0,0,0.20);
        cursor: pointer;
        border-radius: 50px;
        margin: 0 0 20px; /* centered with space beneath */
    }

/* Keep internal button span styling intact */
.memzo-form-item button span {
    color: #FFF;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border: 1px solid rgba(255,255,255,0.10);
    background: linear-gradient(0deg, #5131E6 0%, #5131E6 100%);
    position: relative;
    z-index: 5;
    border-radius: 30px;
    transition: 0.4s all ease;
}

    .memzo-form-item button span img {
        max-width: 100%;
        margin-left: 12px;
    }

    .memzo-form-item button span::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-color: #006EFF;
        border-radius: 30px;
        z-index: -1;
        opacity: 0;
        transition: 0.4s all ease;
    }

.memzo-form-item button:hover span::after {
    opacity: 1;
}

/* Responsive adjustments:
   keep the doubled max-width on desktop but ensure good behavior on tablets/phones */
@media screen and (max-width: 1199px) {
    .memzo-form-item {
        width: 95%;
    }

    .memzo-form-row .form-control,
    .memzo-form-row select.form-control,
    .memzo-form-row select.form-select,
    .memzo-form-row textarea.form-control {
        max-width: 100%;
        width: 100%;
    }

    /* allow the submit to fill the container on medium screens if needed */
    .memzo-form-item-button > button {
        width: 50ch;
        max-width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .memzo-form-area {
        padding: 22px 15px;
        padding-bottom: 20px;
    }

    .memzo-form-item {
        padding: 18px 30px;
        max-width: 100%;
        width: 100%;
    }

        .memzo-form-item h2 {
            font-size: 23px;
        }

    .memzo-form-item-icon ul li a {
        width: 55px;
        height: 55px;
        margin: 0 8px;
    }

        .memzo-form-item-icon ul li a img {
            max-width: 42px;
        }

    .memzo-form-item-inner {
        grid-template-columns: repeat(1, 1fr);
    }

    .memzo-form-item h6 {
        font-size: 11px;
    }

    .memzo-form-item button span {
        font-size: 15px;
        padding: 4px;
    }

    .memzo-form-item h2 {
        font-size: 25px;
    }

    .memzo-form-item textarea {
        min-height: 200px;
    }

    /* On narrow screens the button should be full width to match the textarea */
    .memzo-form-item-button > button {
        width: 100%;
        max-width: 100%;
    }
}
