* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    background-color: #f7f3ee;
    color: #3d3935;
}


/* =========================
   HERO
   ========================= */

.hero {
    min-height: 100vh;

    position: relative;

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

    padding: 40px 25px;

    text-align: center;

    /*
    Fotoğraf eklediğinde burayı aç:

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.35)
        ),
        url("images/meyra-osman.jpg");

    background-size: cover;
    background-position: center;

    color: white;
    */
}

.hero-content {
    max-width: 750px;
}

.hero h1 {
    margin: 15px 0;

    font-size: 64px;
    font-weight: normal;
}

.invitation-title {
    margin: 0;

    font-size: 15px;

    letter-spacing: 4px;
}

.date {
    margin-top: 25px;

    font-size: 18px;

    letter-spacing: 3px;
}

.intro-text {
    max-width: 550px;

    margin: 25px auto 0;

    font-size: 19px;
    line-height: 1.7;
}


/* =========================
   LANGUAGE SWITCH
   ========================= */

.language-switch {
    position: absolute;

    top: 25px;
    right: 25px;

    display: flex;

    padding: 4px;

    background-color: rgba(255, 255, 255, 0.9);

    border-radius: 30px;

    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
}

.language-button {
    margin: 0;
    padding: 8px 12px;

    border: none;
    border-radius: 25px;

    background-color: transparent;

    font-size: 20px;

    cursor: pointer;

    transition: 0.2s;
}

.language-button:hover {
    transform: scale(1.07);
}

.language-button.active {
    background-color: #6e7b63;
}


/* =========================
   MAIN BUTTON
   ========================= */

.main-button {
    display: inline-block;

    margin-top: 35px;

    padding: 14px 30px;

    background-color: #6e7b63;
    color: white;

    border-radius: 5px;

    text-decoration: none;

    transition: 0.2s;
}

.main-button:hover {
    background-color: #53604b;

    transform: translateY(-2px);
}


/* =========================
   SECTIONS
   ========================= */

section {
    max-width: 700px;

    margin: 0 auto;

    padding: 90px 25px;

    text-align: center;
}

section h2 {
    margin-top: 0;

    font-size: 38px;
    font-weight: normal;
}


/* =========================
   WEDDING INFO
   ========================= */

.wedding-info {
    border-bottom: 1px solid #ded8d0;
}

.details {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: 30px;

    font-size: 19px;
}


/* =========================
   RSVP
   ========================= */

.rsvp-section > p {
    line-height: 1.7;
}

form {
    margin-top: 40px;

    text-align: left;
}

.form-group {
    margin-top: 22px;
}

label {
    display: block;

    margin-bottom: 8px;

    font-size: 16px;
}

input,
select,
textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #cbc4ba;
    border-radius: 5px;

    background-color: white;
    color: #3d3935;

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition: border 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #6e7b63;
}

textarea {
    min-height: 120px;

    resize: vertical;
}


/* =========================
   SUBMIT BUTTON
   ========================= */

.submit-button {
    width: 100%;

    margin-top: 28px;

    padding: 15px;

    border: none;
    border-radius: 5px;

    background-color: #6e7b63;
    color: white;

    font-family: inherit;
    font-size: 17px;

    cursor: pointer;

    transition: 0.2s;
}

.submit-button:hover {
    background-color: #53604b;
}


/* =========================
   UTILITIES
   ========================= */

.hidden {
    display: none;
}


/* =========================
   FOOTER
   ========================= */

footer {
    padding: 50px 25px;

    text-align: center;

    font-size: 14px;

    border-top: 1px solid #ded8d0;
}

.language-button img {
    width: 28px;
    height: 28px;

    object-fit: contain;

    display: block;
}

.hero-image {
    width: 300px;
    max-width: 80%;

    margin-bottom: 25px;

    object-fit: contain;
}

/* =========================
   SUCCESS MESSAGE
   ========================= */

.success-message {
    margin-top: 40px;

    padding: 40px 30px;

    text-align: center;

    background-color: #f1ede6;

    border: 1px solid #ded8d0;
    border-radius: 10px;
}

.success-icon {
    width: 55px;
    height: 55px;

    margin: 0 auto 20px;

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

    border-radius: 50%;

    background-color: #6e7b63;
    color: white;

    font-size: 28px;
}

.success-message h3 {
    margin: 0 0 15px;

    font-size: 28px;
    font-weight: normal;
}

.success-message p {
    margin: 0;

    font-size: 17px;
    line-height: 1.7;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    .hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .invitation-title {
        font-size: 12px;

        letter-spacing: 2px;
    }

    .date {
        font-size: 16px;
    }

    .intro-text {
        font-size: 17px;
    }

    .language-switch {
        top: 15px;
        right: 15px;
    }

    section {
        padding: 70px 20px;
    }

    section h2 {
        font-size: 32px;
    }
}