:root {
    --primary-color: #e5a4ab;
    --text-dark: #5c4d4d;
    --bg-color: #fcf9f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: url('dashboard_bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Frost the background image! */
body::before {
    content: "";
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

/* THE RICE PAPER DOORS */
.door {
    position: fixed;
    top: 0;
    width: 50vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.65); /* Translucent vellum paper */
    backdrop-filter: blur(5px); /* The frost effect! */
    -webkit-backdrop-filter: blur(5px);
    z-index: 50;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.door-left {
    left: 0;
    /* Create the faint vertical line in the middle */
    border-right: 1px solid rgba(0, 0, 0, 0.1); 
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
}

.door-right {
    right: 0;
}

/* Open animations for doors */
.door-left.open {
    transform: translateX(-100%);
}

.door-right.open {
    transform: translateX(100%);
}

/* THE SLEEVE (FAIRY & RIBBON) */
.sleeve {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    
    /* THE MAGIC TRICK: This makes the white background of the image completely transparent! */
    mix-blend-mode: multiply; 
}

.sleeve.open {
    transform: translateY(-100%);
    pointer-events: none;
}

.sleeve-img {
    width: 100%;
    max-width: 600px;
    height: 100%;
    object-fit: contain;
    /* The white parts of this image will disappear due to mix-blend-mode */
}

/* THE PULSING DOT */
.click-target {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 110;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-ring {
    width: 40px;  /* Made it bigger as requested! */
    height: 40px;
    border-radius: 50%;
    background-color: rgba(229, 164, 171, 0.4);
    border: 2px solid var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 164, 171, 0.7); }
    70% { transform: scale(1.5); box-shadow: 0 0 0 20px rgba(229, 164, 171, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 164, 171, 0); }
}

/* INNER CONTENT */
.content {
    position: relative;
    z-index: 10; /* Below the doors */
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.invitation-card {
    position: relative; /* For absolute positioning of the magnifying glass */
    width: 100%;
    box-shadow: 0 15px 35px rgba(229, 164, 171, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 40px;
    background: white;
}

.inside-img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: crosshair;
}

/* True Magnifying Glass! */
.img-magnifier-glass {
    position: absolute;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: none;
    pointer-events: none; /* Let mouse events pass through to image */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2), inset 0 0 10px rgba(0,0,0,0.1);
    z-index: 10;
    /* A subtle backdrop blur inside the ring before image loads just in case */
    background-color: white;
}

/* FULLSCREEN LIGHTBOX (MOBILE & CLICK) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
.lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    /* Allow native pinch to zoom to work wonderfully on this large element */
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

/* RSVP FORM */
.rsvp-section {
    background: white;
    padding: 40px 30px;
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(229, 164, 171, 0.2);
    margin-bottom: 50px;
    text-align: center;
}

.rsvp-section h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.rsvp-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.rsvp-form {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    background-color: #fafafa;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
}

.radio-label input {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #d18f96;
    transform: translateY(-2px);
}

.hidden {
    display: none !important;
}

.success-msg {
    padding: 30px;
    background-color: #fdf5f6;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    margin-top: 20px;
}

.success-msg h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
}
