@charset "utf-8";

/*
    Freelance Forms Stylesheet
    Author: Jose Sanchez
    Date: 3/6/2026

    Filename: forms-styles.css
*/

/* Color Palette */
:root {
    --primary-color: #E7E2DD;
    --secondary-color: #D1C7BD;
    --accent-color: #AF8C5C;
    --footer-color: #474440;
}

/* Font Styles */
.figtree-regular {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

/* Fade-in Animation on Scroll*/
.card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.3s ease, transform 1.3s ease;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

/*Slide in Animations*/
/* From top to bottom */
.logo {
    opacity: 0;
    transform: translateY(-50px);
    animation: slideIn 1.3s ease forwards;
}

/* From right to left */
.title {
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 1.3s ease forwards;
}

/* From left to right */
.back-btn, .info {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 1.3s ease forwards;
}


@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* HTML & Body Styles */
html {
    background-color: var(--primary-color);
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: "Figtree", sans-serif;
    overflow-x: hidden;
}


/* Top Header Styles */
.top-header {
    display: flex;
    justify-content: flex-start;
}

.back-btn {
    border: none;
    padding: 10px;
}

.back-btn img {
    width: 100%;
    height: 50px;
}


/* Logo Styles */
.logo {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 50px;
    width: 100%;
}

.logo img {
    display: block;
    width: 80%;
}

/* Main Styles */
.main {
    background-color: var(--secondary-color);
    padding-top: 30px;
    text-align: center;
}

.main p {
    font-size: 1.3rem;
    line-height: 1.7rem;
}

h2 {
    text-decoration: underline var(--accent-color);
    padding-top: 20px;
    font-size: 1.7rem;
}

/* Intro Styles */


.title {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
}

.info {
    width: 80%;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.7rem;
}


/* Contact Form Styles */
.contactForm1 {
    margin-bottom: 30px;
    box-sizing: border-box;
}

.card-header1 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.note {
    font-size: 1rem;
}

.card-header1 h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-decoration: underline var(--accent-color);
}

.form-group1 {
    width: 80%;
    margin: 0 auto;
}

label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    margin-top: 1rem;
}

input, textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--primary-color);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

input:focus, textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(200, 96, 42, 0.1);
    background: #fff;
}

input.error, textarea.error {
    border-color: #d94f4f;
}

textarea { height: 120px; }

.error-msg {
    font-size: 0.78rem;
    color: #d94f4f;
    margin-top: 0.35rem;
    display: none;
}

.error-msg.visible { display: block; }

.row1 {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 20px;
}


button[type="submit"] {
    width: 60%;
    margin: 0 auto;
    background: var(--footer-color);
    color: #fff;
    box-shadow: inset 2px 2px 6px rgba(125, 110, 101, 0.652),
        inset -3px -3px 6px rgba(0, 0, 0, 0.1),
        2px 2px 6px rgb(101, 101, 101);
    border: none;
    border-radius: 10px;
    padding: 0.85rem;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

button[type="submit"]:hover { background: #2e2b26; }

button[type="submit"]:active { transform: scale(0.98); }

button[type="submit"].loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Success state */
.success-msg {
    display: none;
    text-align: center;
    padding: 2rem 0 1rem;
}

.success-msg.visible { display: block; }

.checkmark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eef7f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.success-msg h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.success-msg p {
    color: var(--muted);
    font-size: 0.88rem;
}

/* RSVP Styles */
.rsvp-section {
  width: 90%;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}

.rsvp-form iframe {
  border: none;
  width: 100%;
  line-height: 1.8rem;
}


/* Footer Styles */
footer {
    display: flex;
    flex-direction: column;
    background-color: var(--footer-color);
    margin-top: 0;
    text-align: center;
    border-top: 2px solid var(--accent-color);
}

footer img {
    width: 100%;
    align-items: center;
    margin: 0 auto;
}

.foot-logo {
    display: block;
    width: 8rem;
    padding-top: 20px;
}

footer p {
    margin: 5px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.links {
    display: flex;
    flex-direction: column;
    line-height: 1.5rem;
}

.foot-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 60%;
    margin: 0 auto;
    text-align: center;
    justify-content: center;
}

.links a {
    text-decoration: underline var(--accent-color);
    color: var(--accent-color);
    padding: 5px;
}

.links h3 {
    margin-bottom: 5px;
    text-decoration: none;
}


@media (min-width: 900px) {
    body {
        max-width: 1440px;
        margin: 0 auto;
    }

    /* Logo Styles */
    .logo {
        width: 45rem;
        max-width: 50rem;
        margin: 0 auto;
    }

    p {
        font-size: 1.3rem;
        line-height: 2rem;
    }

    .card, .intro {
        width: 80%;
        margin: 0 auto;
    }

    /* Footer Styles */
    footer {
        font-size: larger;
    }

    footer p {
        font-size: 1rem;
    }

}