:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ff8e8e;
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --card-bg: rgba(255, 255, 255, 0.65);
    --text-color: #2d3436;
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --border: 1px solid rgba(255, 255, 255, 0.18);
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Pacifico', cursive;
}

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

body {
    font-family: var(--font-main);
    height: 100vh;
    overflow: hidden; /* Prevent scrolling for the "No" button chase */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ff9a9e;
    background-image: linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%);
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Floating hearts background animation (can be added via pseudo-elements or JS, keeping simple css for now) */
body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    position: relative;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: var(--border);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    text-align: center;
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeIn 0.5s ease-out;
}

.card.active {
    display: flex;
}

h1 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

h2 {
    color: var(--text-color);
    font-weight: 500;
}

p {
    color: #636e72;
    font-size: 1.1rem;
    line-height: 1.6;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #dfe6e9;
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

button {
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

button:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

/* Survey Stages */
.question-item {
    margin-bottom: 15px;
    text-align: left;
    width: 100%;
}

.question-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.question-item input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Confession Stage */
.buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    position: relative; /* Context for absolute No button */
    width: 100%;
    height: 60px; /* Pre-allocate space */
}

.btn-yes {
    background: #2ecc71;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    z-index: 10;
}

.btn-no {
    background: #e74c3c;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all 0.1s ease-out; /* Smooth but fast movement */
}

.hero-gif {
    max-width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Success Stage */
#stage-success h1 {
    font-size: 3rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .buttons-container {
        flex-direction: row; /* Keep side by side on mobile if possible, or stack */
        height: auto;
        min-height: 150px; /* Give room for the No button to jump around inside card area initially? Actually it jumps screen wide usually */
    }
}

/* iPad Pro 12.9 Specifics */
@media only screen 
  and (min-width: 1024px) 
  and (max-height: 1366px) 
  and (-webkit-min-device-pixel-ratio: 1.5) {
    .container {
        max-width: 700px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    .btn-yes, .btn-no {
        padding: 20px 50px;
        font-size: 1.5rem;
    }
}

/* Survey Radio Buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    justify-content: flex-start;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.3s;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.8);
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

/* Follow-up Questions */
.follow-up-container {
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
    margin-left: 5px;
    animation: fadeIn 0.3s ease-in-out;
}


/* --- Google Form Card Styling --- */
.google-form-card {
    background: #ffffff;
    border-radius: 8px; /* Sharper corners like Google Forms */
    border: 1px solid #dadce0;
    box-shadow: none; /* Google forms are usually flat or have minimal shadow */
    padding: 24px; /* Standard padding */
    text-align: left; /* Google questions are left aligned */
    position: relative;
    overflow: hidden;
    max-width: 640px; /* Closer to Google form width */
    margin: 0 auto;
}

/* The colored top accent bar */
.google-form-top-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #673ab7; /* Default Google Form purple */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.google-form-card h1 {
    font-family: 'Roboto', sans-serif; /* Google-ish font (fallback to sans-serif) */
    font-size: 24pt;
    color: #202124;
    font-weight: 400;
    margin-top: 10px;
}

.google-form-card p {
    color: #202124;
    font-size: 11pt;
    margin-bottom: 25px;
}

/* Input that looks like Google Forms (underline only) */
.google-form-card .input-group input {
    border: none;
    border-bottom: 1px solid #dadce0;
    border-radius: 0;
    padding: 8px 0;
    font-size: 11pt;
    background: transparent;
    transition: border-bottom 0.3s;
}

.google-form-card .input-group input:focus {
    border-bottom: 2px solid #673ab7;
    box-shadow: none;
    outline: none;
}

/* Button styling for Google Form stage */
.google-form-btn {
    background-color: #673ab7;
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none; /* No uppercase */
    box-shadow: none;
    margin-top: 20px;
}

.google-form-btn:hover {
    background-color: #5e35b1;
    transform: none; /* Remove the lift effect */
    box-shadow: 0 1px 2px rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

/* --- Confession (Love) Card Styling --- */
.love-card {
    background: rgba(255, 230, 230, 0.85); /* Pinkish white */
    border: 2px solid #ff4081; /* Hot pink border */
    box-shadow: 0 0 20px rgba(255, 64, 129, 0.3), 0 0 60px rgba(255, 64, 129, 0.1); /* Glowing effect */
}

.love-card h1 {
    font-family: 'Pacifico', cursive;
    color: #d50000;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

.love-card .btn-yes {
    background: #ff4081;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.4);
    font-family: 'Pacifico', cursive; /* Match the vibe */
}

.love-card .btn-yes:hover {
    background: #f50057;
    transform: scale(1.05);
}

.sub-question {
    margin-top: 10px;
}
