/* style.css */
:root {
    --bg-color: #1a1a1a;
    --gold-color: #c9a961;
    --text-color: #c9a961;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-script: 'Dancing Script', cursive;
}

body {
    margin: 0;
    padding: 40px 20px;
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 100%;
    height: 30px;
    left: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        transparent 2%,
        var(--gold-color) 2%,
        var(--gold-color) 3%,
        transparent 3%,
        transparent 97%,
        var(--gold-color) 97%,
        var(--gold-color) 98%,
        transparent 98%);
    z-index: 10;
}

body::before {
    top: 0;
}

body::after {
    bottom: 0;
}

.invitation-card {
    position: relative;
    max-width: 500px;
    width: 100%;
    background-color: #000;
    padding: 50px 40px;
    border: none;
    border-radius: 0;
    overflow: hidden;
    text-align: center;
    box-shadow:
        inset 0 0 0 1px var(--gold-color),
        inset 0 0 0 15px #000,
        inset 0 0 0 16px var(--gold-color);
}

.invitation-card::before,
.invitation-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--gold-color);
    z-index: 2;
}

.invitation-card::before {
    top: -10px;
    left: -10px;
}

.invitation-card::after {
    top: -10px;
    right: -10px;
}

.background-sixty {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 380px;
    font-family: var(--font-serif);
    font-weight: 700;
    color: rgba(60, 60, 60, 0.4);
    z-index: 0;
    line-height: 0.8;
}

.header {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.script-sixty {
    position: absolute;
    font-family: var(--font-script);
    color: var(--gold-color);
    font-size: 160px;
    left: -55px;
    top: 500px;
    transform: rotate(-90deg);
    transform-origin: top left;
    opacity: 1;
    font-weight: 700;
}

.header h1 {
    font-family: var(--font-serif);
    color: var(--gold-color);
    font-size: 64px;
    line-height: 1.1;
    margin: 0;
    padding-left: 0;
    text-align: center;
    font-style: italic;
    font-weight: 400;
}

.invitation-text {
    position: relative;
    z-index: 1;
    margin: 40px 0;
    font-size: 16px;
    line-height: 1.6;
}

.invitation-text p {
    color: var(--gold-color);
    text-transform: capitalize;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 2px;
    line-height: 1.6;
}

.invitation-text .join-us {
    font-style: italic;
    text-transform: lowercase;
    margin-top: 20px;
    font-weight: 300;
    letter-spacing: 1px;
}

.details {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    text-align: left;
    border-top: none;
    border-bottom: none;
    padding-left: 40px;
    margin-bottom: 40px;
}

.date-number {
    font-family: var(--font-serif);
    font-size: 120px;
    color: var(--gold-color);
    line-height: 1;
    margin-right: 25px;
    position: relative;
    border-right: 1px solid var(--gold-color);
    padding-right: 25px;
    font-weight: 400;
}

.date-details p {
    margin: 3px 0;
    font-size: 13px;
    color: var(--gold-color);
    font-style: italic;
    font-weight: 300;
}

.rsvp-section {
    position: relative;
    z-index: 1;
    color: var(--gold-color);
    font-style: italic;
    font-size: 13px;
    font-weight: 300;
}

.rsvp-section::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--gold-color);
    bottom: -65px;
    left: -55px;
    z-index: 2;
}

.invitation-card .rsvp-section::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--gold-color);
    bottom: -65px;
    right: -55px;
    z-index: 2;
}

.rsvp-deadline {
    font-size: 13px;
    margin-bottom: 20px;
    font-style: italic;
    font-weight: 300;
}

.form-group {
    margin-bottom: 15px;
}

#rsvp-form input {
    width: 90%;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid var(--gold-color);
    border-radius: 2px;
    color: var(--gold-color);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 300;
}

#rsvp-form input::placeholder {
    color: #666;
    font-style: italic;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.btn.accept {
    background-color: var(--gold-color);
    color: #000;
    font-weight: 500;
}

.btn.accept:hover {
    background-color: #d4b76e;
    transform: translateY(-1px);
}

.btn.decline {
    background-color: transparent;
    color: var(--gold-color);
    border: 1px solid var(--gold-color);
}

.btn.decline:hover {
    background-color: rgba(201, 169, 97, 0.1);
    transform: translateY(-1px);
}

#response-message {
    margin-top: 20px;
    font-size: 14px;
    color: var(--gold-color);
    min-height: 24px;
    font-style: italic;
    font-weight: 300;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .invitation-card {
        padding: 40px 25px;
        box-shadow:
            inset 0 0 0 1px var(--gold-color),
            inset 0 0 0 10px #000,
            inset 0 0 0 11px var(--gold-color);
    }

    .background-sixty {
        font-size: 280px;
        top: 40px;
    }

    .script-sixty {
        font-size: 120px;
        left: -45px;
        top: 380px;
    }

    .header h1 {
        font-size: 48px;
    }

    .invitation-text p {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .details {
        padding-left: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .date-number {
        font-size: 100px;
        border-right: none;
        border-bottom: 1px solid var(--gold-color);
        padding-right: 0;
        padding-bottom: 15px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .date-details {
        text-align: center;
    }

    .date-details p {
        font-size: 12px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 14px 20px;
    }

    #rsvp-form input {
        width: 100%;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .invitation-card {
        padding: 30px 20px;
    }

    .background-sixty {
        font-size: 220px;
        top: 30px;
    }

    .script-sixty {
        font-size: 100px;
        left: -35px;
        top: 320px;
    }

    .header h1 {
        font-size: 40px;
    }

    .invitation-text p {
        font-size: 11px;
    }

    .date-number {
        font-size: 80px;
    }

    body::before,
    body::after {
        height: 20px;
    }
}
