:root {
    --green-bg: #ffffff;
    --paper-color: #fcfcfc;
    --gold: #d4af37;
    --text-color: #333;
    --border-color: #aaa;
    --modal-overlay: rgba(0, 0, 0, 0.85);
}

body {
    background: #e0e0e0;
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
}

/* --- Intro Overlay --- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--green-bg);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    transition: transform 1.2s ease-in-out, opacity 1s ease-in-out;
}

#intro-overlay.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.logo-top {
    width: 495px;
    height: auto;
    /* margin-bottom: 0.5rem; */
    margin-top: 3px !important;
    padding-top: 25px;
    padding-bottom: 10px;
}

.bow-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.bow-container:hover {
    transform: scale(1.05);
}

.bow-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.click-text {
    color: #888;
    /* Dark gray for white background */
    margin-bottom: 1rem;
    margin-top: 0;
    margin-top: 0;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* --- Main Content (A4 Paper) --- */
.container {
    display: flex;
    justify-content: center;
    padding: 20px 10px;
    min-height: 100vh;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s 0.8s, transform 1s 0.8s;
}

.container.visible {
    opacity: 1;
    transform: translateY(0);
}

.paper-a4 {
    background: var(--paper-color);
    width: 100%;
    max-width: 500px;
    padding: 0 0 3rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 8px;
    color: var(--text-color);
    overflow: hidden;
}

/* Header Photo */
.header-photo-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.header-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- Date Header Section --- */
.date-header-block {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin: 0 2rem 2rem 2rem;
    /* Add side margin now that paper has 0 padding */
}

.pre-date-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: #555;
}

.date-display {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 5px 0;
}

.date-part {
    font-weight: 400;
}

.separator {
    font-weight: 300;
    font-size: 2rem;
    color: #bbb;
}

.post-date-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    color: #555;
    font-family: 'Lato', sans-serif;
}

/* --- Countdown --- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.time-block span:first-child {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--gold);
}

.time-block .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #888;
    margin-top: 3px;
    font-family: 'Lato', sans-serif;
}

/* --- Location --- */
.location-section {
    margin-bottom: 2.5rem;
}

.location-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.location-address {
    font-size: 0.85rem;
    line-height: 1.5;
    text-transform: uppercase;
    color: #666;
}

/* --- Buttons --- */
.actions-section {
    margin-bottom: 3rem;
}

.click-instruction-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    color: #777;
}

.btn-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.capsule-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Icon on left */
    padding: 12px 25px;
    border: 1px solid #ccc;
    border-radius: 50px;
    background: transparent;
    text-decoration: none;
    color: #555;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
}

.capsule-btn i {
    width: 20px;
    margin-right: 15px;
    color: var(--gold);
    /* Icon gold */
    text-align: center;
}

.capsule-btn span {
    flex-grow: 1;
    /* Center text visually in space */
    text-align: center;
    padding-right: 20px;
    /* Balance icon space */
}

.capsule-btn:hover {
    background: #f4f4f4;
    border-color: #999;
}

/* --- Footer --- */
.footer-sign p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: #777;
}

.couple-sign {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.5rem;
    color: #444;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--gold);
    color: white;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 480px) {
    .date-display {
        font-size: 2rem;
    }

    .paper-a4 {
        padding: 2rem 1.5rem;
    }
}