/* ==========================================================================
   Fara7 E-Invite Styling (Luxury Gold & Cream Wedding Card)
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --bg-cream: #faf6f0;
    --text-dark: #2c2725;
    --text-muted: #6b6360;
    
    --gold-primary: #c5a059;
    --gold-dark: #9e7f41;
    --gold-light: #f3e5c8;
    --gold-gradient: linear-gradient(135deg, #e5c07b 0%, #c5a059 50%, #9e7f41 100%);
    
    --rose-accent: #e08e9b;
    --shadow-soft: 0 15px 40px rgba(165, 150, 140, 0.12);
    --border-gold: 1px solid rgba(197, 160, 89, 0.25);

    --font-heading: 'Cinzel Decorative', serif;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 3rem 1rem;
}

/* Home Navigation Button */
.home-nav-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: 45px;
    height: 45px;
    background: white;
    border: var(--border-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold-primary);
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    z-index: 100;
    transition: all 0.3s ease;
}

.home-nav-btn:hover {
    transform: scale(1.1);
    color: white;
    background: var(--gold-primary);
}

/* Floral Decors Mockup (CSS Ornaments) */
.floral-decor {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    background: radial-gradient(circle, var(--rose-accent) 0%, transparent 70%);
    filter: blur(40px);
}

.floral-decor.top-left { top: -50px; left: -50px; }
.floral-decor.bottom-right { bottom: -50px; right: -50px; }

/* Main Card Container */
.invite-card-container {
    background-color: white;
    border: 1px solid rgba(197, 160, 89, 0.15);
    max-width: 550px;
    width: 100%;
    border-radius: 24px;
    padding: 4.5rem 3rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.invite-card-container::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: var(--border-gold);
    border-radius: 12px;
    pointer-events: none;
}

/* Header */
.header {
    margin-bottom: 3.5rem;
}

.invite-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-primary);
    display: inline-block;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gold-primary);
    padding-bottom: 0.25rem;
}

.couple-names {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.couple-names span {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.8rem;
    color: var(--gold-primary);
}

.announcement {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 360px;
    margin: 0 auto;
}

/* Countdown Section */
.countdown-section {
    margin-bottom: 3.5rem;
}

.timer-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.timer-card {
    background-color: var(--bg-cream);
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-card .number {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.timer-card .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Details Section */
.details-section {
    margin-bottom: 3.5rem;
}

.info-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background-color: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(197, 160, 89, 0.08);
}

.info-card {
    flex: 1;
    text-align: center;
}

.info-icon {
    font-size: 1.4rem;
    color: var(--gold-primary);
    margin-bottom: 0.75rem;
}

.info-card h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.info-card p {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    font-weight: 600;
}

.info-card .sub-info {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.info-divider {
    width: 1px;
    height: 60px;
    background-color: rgba(197, 160, 89, 0.2);
}

/* Map Section */
.map-section {
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.map-frame-wrapper {
    border: var(--border-gold);
    border-radius: 16px;
    overflow: hidden;
    height: 180px;
}

/* Styled Visual Placeholder Map */
.mock-map {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fdfbfa 0%, #eedec7 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.map-pin {
    font-size: 2.2rem;
    color: #ef4444;
    animation: bouncePin 1.5s infinite alternate;
    z-index: 2;
}

.map-glow {
    position: absolute;
    width: 40px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    bottom: 45%;
    filter: blur(2px);
    z-index: 1;
}

@keyframes bouncePin {
    to { transform: translateY(-8px); }
}

.map-label {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0.5rem 0 1rem 0;
    color: var(--text-dark);
}

.open-maps-btn {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--gold-primary);
    text-decoration: underline;
    cursor: pointer;
}

.open-maps-btn:hover {
    color: var(--gold-dark);
}

/* RSVP CTA Box */
.rsvp-cta {
    margin-bottom: 1rem;
}

.rsvp-btn {
    background: var(--gold-gradient);
    color: white;
    border: none;
    width: 100%;
    padding: 1.1rem 0;
    border-radius: 12px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.25);
    transition: all 0.3s;
}

.rsvp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
}

.rsvp-deadline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.75rem;
}

/* Event Footer */
.footer {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold-primary);
    margin-top: 2rem;
}

/* ==========================================================================
   RSVP Modal Glassmorphism
   ========================================================================== */
.rsvp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 39, 37, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 1rem;
}

.rsvp-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.rsvp-modal-card {
    background-color: white;
    border: var(--border-gold);
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    padding: 3rem 2.2rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.close-rsvp {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-muted);
}

.close-rsvp:hover {
    color: var(--text-dark);
}

.rsvp-modal-card h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.rsvp-modal-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

/* Form inputs with floating labels */
.form-group {
    position: relative;
    width: 100%;
}

.form-group input {
    width: 100%;
    border: 1px solid rgba(197, 160, 89, 0.2);
    background-color: var(--bg-cream);
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--gold-primary);
    background-color: white;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label {
    top: -9px;
    left: 8px;
    font-size: 0.72rem;
    background-color: white;
    padding: 0 0.35rem;
    color: var(--gold-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Select formatting */
.form-group-select {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-select label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.form-group-select select {
    background-color: var(--bg-cream);
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 0.9rem;
    border-radius: 8px;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Custom Radio style */
.form-group-radio {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-radio > label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.radio-row {
    display: flex;
    gap: 1.5rem;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.radio-label input {
    display: none;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.3s;
}

.radio-label input:checked ~ .custom-radio {
    border-color: var(--gold-primary);
}

.radio-label input:checked ~ .custom-radio::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Submit RSVP */
.submit-rsvp-btn {
    background: var(--gold-gradient);
    color: white;
    border: none;
    padding: 1.1rem 0;
    border-radius: 10px;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
    transition: all 0.3s;
}

.submit-rsvp-btn:hover {
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35);
}

/* Mobile configurations */
@media (max-width: 600px) {
    .invite-card-container { padding: 3rem 1.5rem; }
    .couple-names { font-size: 1.8rem; }
    .info-grid { flex-direction: column; gap: 1.5rem; }
    .info-divider { width: 50px; height: 1px; }
}
