
html {
    font-size:14px;
}

body {
    font-family: ralewayregular, sans-serif;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
}

header {
    width:100%;
    background-image:url('../img/header.jpg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    color:#fff;
    text-align:center;
    display:flex;
    flex-direction:column;
    aspect-ratio: 2/1;
}

header p {
    margin-top:10rem;
    font-size:1.75rem;
    font-weight:bold;
    text-transform:uppercase;
}

header h1 {
    margin:0;
    font-size:11rem;
    font-family: 'Catchy Mager', serif;
}
header h1 a {
    color:#fff;
    text-decoration: none;
}

header h1 a:hover {
    color:#fff;
    text-decoration: underline;
}

header h3 {
    margin:0;
    margin-top:2rem;
    font-size:6rem;
    font-family: 'Catchy Mager', serif;
    flex-grow:1;
}

nav {
    border-top:0.2rem #fff solid;
    width:100%;
    align-self:flex-end;
    height:2rem;
    padding:1rem;
}

nav ul{
    width:90%;
    margin:0;
    margin-left:auto;
    margin-right:auto;
    list-style-type: none;
    display:flex;
    flex-direction:row;
    flex-wrap: nowrap;
    justify-content: center;
}

nav ul li {
    
    padding-top:0;
    white-space: nowrap;
    flex-grow: 1;
    font-size:1.5rem;
    font-weight:bolder;
    text-transform: uppercase;
    cursor:default;
    letter-spacing: 0.3rem;
}

nav .selected {
    text-decoration: underline;
}

nav a {
    color:#fff;
    text-transform: uppercase;
    font-size:1.3rem;
    font-weight:bold;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

.content {
    margin:4rem auto;
    max-width:70%;
    font-size:1.5rem;
    text-align: justify;
    box-sizing: border-box;
    overflow-x: hidden;
}

.content .team-photo {
    max-width:60%;
    margin:4rem;
    float:right;
}

.content iframe {
    width:100%;
    border-width:0;
    min-height:800px;
}

li .photo, p .photo {
    float:right;
    width:25%;
    margin:2rem;
    margin-top:0;
}

footer {
    background-color: #623e2a;
    color: #efebe5;
    text-align: center;
    margin:auto;
    padding:0.33rem;
    padding-top:3rem;
    max-width: 70%;
    justify-content: center;
}

footer div a, footer div a:visited {
    color:#fff;
}

footer .signup-button-wrapper {
    padding:1rem;
    font-size:1.2rem;
    max-width:fit-content;
    margin-left:auto;
    margin-right:auto;    
}

.signup-button {
    padding:1rem;
    align-items: center;
    font-size:1.5rem;
    font-weight: normal;
    color:#623e2a !important;
    background-color: #efebe5;
    text-decoration: none;
    border-radius:3rem;
    border-width:1px;
    border-color: #623e2a;
    white-space: nowrap;
}

.signup-button.solid {
    color:#ffffff !important;
    background-color: #623e2a;
    border-color: #623e2a;
}

.signup-button-inline {
    font-size:1.5rem;
    font-weight: bold;
    color:#623e2a !important;
    text-decoration: underline;
    white-space: nowrap;
}

footer .footer-links {
    padding-top:3rem;
    display:flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width:100%;
    gap:2rem;
}

@media only screen and (max-width:1280px) {
    header p {
        margin-top:5rem;
    }

    header h1 {
        font-size:8rem;
    }
    
    header h3 {
        font-size:4rem;
        flex-grow:1;
    }
    .content {
        margin:2rem;
        margin-left:auto;
        margin-right:auto;
        max-width:85%;
        font-size:1.5rem;
        text-align: justify;
    }
}



@media only screen and (max-width:870px) {
    header p {
        margin-top:2rem;
    }
    header h1 {
        font-size:6rem;
        margin:1rem;
    }
    
    header h3 {
        font-size:3rem;
    }
    .content {
        margin:2rem;
        margin-left:auto;
        margin-right:auto;
        max-width:85%;
        font-size:1.5rem;
        text-align: justify;
    }
    nav a {
        font-size:1.1rem;
    }

    nav ul li.selected {
        font-size:1.1rem;
        align-self:flex-end;
        padding-bottom:0.1rem;
    }
}

@media only screen and (max-width:720px) {
    nav a {
        font-size:0.9rem;
    }

    nav ul li {
        letter-spacing: initial;
    }

    nav ul li.selected {
        font-size:0.9rem;
        align-self:flex-end;
        padding-bottom:0.1rem;
    }

    header h1 {
        margin:0;
        font-size:5rem;
    }

    header h3 {
        margin:0;
        font-size:2.5rem;
    }

    header p {
        padding-top:1rem;
        font-size:1.5rem;
    }

    .content {
        margin:2rem;
        margin-left:auto;
        margin-right:auto;
        max-width:85%;
        font-size:1.5rem;
        text-align: justify;
    }

    .content .team-photo {
        max-width:45%;
        margin:2rem;
        margin-top:0;
    }
    
}

@media only screen and (max-width:520px) {
    html {
        font-size:12px;
    }
    
    .content {
        margin:2rem;
        margin-left:auto;
        margin-right:auto;
        max-width:85%;
        font-size:1.5rem;
        text-align: justify;
    }


    .content .team-photo {
        max-width:45%;
        margin:2rem;
        margin-top:-1rem;
    }
}

/* Form validation styles */
.form-field {
    position: relative;
}

.form-field.error input,
.form-field.error select,
.form-field.error textarea {
    border: 2px solid #b00020;
    background-color: #ffebee;
}

.form-field.success input,
.form-field.success select,
.form-field.success textarea {
    border: 2px solid #0a7d2a;
    background-color: #e8f5e8;
}

.validation-message {
    font-size: 0.9rem;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    display: block;
    min-height: 20px;
}

.validation-message.error {
    color: #b00020;
    background-color: #ffebee;
    border-left: 3px solid #b00020;
}

.validation-message.success {
    color: #0a7d2a;
    background-color: #e8f5e8;
    border-left: 3px solid #0a7d2a;
}

.validation-message.hidden {
    display: none;
}

/* Mobile-friendly form improvements */
@media only screen and (max-width: 720px) {
    .validation-message {
        font-size: 0.8rem;
        margin-top: 2px;
        padding: 3px 6px;
    }
    
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Universal form element fixes */
input, select, textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.form-field {
    max-width: 100%;
    box-sizing: border-box;
}

/* Apply box-sizing to content areas only */
.content * {
    box-sizing: border-box;
}

.testimonial-section {
    box-sizing: border-box;
    max-width: 100%;
}

.testimonial-box {
    box-sizing: border-box;
    max-width: 100%;
}

/* Signup layout and testimonial styles */
.signup-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    box-sizing: border-box;
    width: 100%;
}

.signup-form-section {
    max-width: 100%;
}

.testimonial-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 2rem;
}

.testimonial-box {
    background-color: #f8f6f3;
    border: 2px solid #623e2a;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(98, 62, 42, 0.1);
    position: relative;
}

.testimonial-box::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 4rem;
    color: #623e2a;
    font-family: 'Catchy Mager', serif;
    line-height: 1;
}

.testimonial-quote p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #2c2c2c;
    margin: 0;
    font-style: italic;
    padding-top: 1rem;
}

.testimonial-author {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #d4c4b8;
}

.testimonial-author p {
    font-size: 1.1rem;
    color: #623e2a;
    margin: 0;
    font-weight: bold;
    text-align: right;
}

/* Responsive design for testimonial */
@media only screen and (max-width: 1000px) {
    .signup-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-section {
        padding-top: 0;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .testimonial-box {
        max-width: 100%;
    }
}

@media only screen and (max-width: 720px) {
    .testimonial-box {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .testimonial-quote p {
        font-size: 1.2rem;
    }
    
    .testimonial-author p {
        font-size: 1rem;
    }
}

@media only screen and (max-width: 520px) {
    .testimonial-box {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .testimonial-quote p {
        font-size: 1.1rem;
    }
    
    .testimonial-author p {
        font-size: 0.9rem;
    }
}

/* Additional mobile viewport fixes for small screens like Motorola G72 */
@media only screen and (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    .content {
        margin: 1rem auto;
        max-width: 95%;
        font-size: 1.4rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .signup-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-box {
        margin: 0;
        padding: 1rem;
        max-width: 100%;
    }
    
    /* Ensure form elements don't overflow */
    input, select, textarea {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-field {
        max-width: 100%;
    }
    
    #signup-form {
        max-width: 100%;
        width: 100%;
    }
}