/* Color palette
   Light:  #EBF4DD
   Accent: #90AB8B
   Darker: #5A7863
   Deep:   #3B4953
*/

@property --rotate {
    syntax: '<angle>';
    initial-value: 132deg;
    inherits: false;
}

:root {
    --bg-soft: #EBF4DD;
    --accent-soft: #90AB8B;
    --accent: #5A7863;
    --accent-deep: #3B4953;
    --text-main: #2b3530;
    --text-muted: #5b6b63;
    --card-radius: 18px;
    --shadow-soft: 0 18px 45px rgba(33, 48, 40, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #EBF4DD;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.page-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.22;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 0;
    animation: floatDecoration 4s ease-in-out infinite;
}

@keyframes floatDecoration {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.page-decoration--top {
    top: -40px;
    right: -10px;
    width: 200px;
    height: 200px;
    background-image: url("../img/hiasan/Asset 1.svg");
}

.page-decoration--bottom {
    bottom: -40px;
    left: -20px;
    width: 220px;
    height: 220px;
    background-image: url("../img/hiasan/Asset 2.svg");
    transform: scaleX(-1) rotate(-6deg);
    animation: floatDecorationWithTransformBottom 4.8s ease-in-out infinite;
    animation-delay: 0.9s;
}

@keyframes floatDecorationWithTransformBottom {
    0%, 100% {
        transform: scaleX(-1) translateY(0) rotate(-6deg);
    }
    50% {
        transform: scaleX(-1) translateY(-15px) rotate(-6deg);
    }
}

.deco-asset-3 {
    top: 18%;
    left: -80px;
    width: 180px;
    height: 220px;
    background-image: url("../img/hiasan/Asset 3.svg");
    transform: rotate(-8deg);
    animation: floatDecoration 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.deco-asset-4 {
    top: 55%;
    right: -90px;
    width: 190px;
    height: 230px;
    background-image: url("../img/hiasan/Asset 4.svg");
    transform: rotate(10deg);
    animation: floatDecoration 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

.deco-asset-5 {
    top: 5%;
    left: 10%;
    width: 120px;
    height: 140px;
    background-image: url("../img/hiasan/Asset 5.svg");
    animation: floatDecoration 6s ease-in-out infinite;
    animation-delay: 0.2s;
}

.deco-asset-6 {
    bottom:10%;
    left: -1%;
    width: 130px;
    height: 150px;
    background-image: url("../img/hiasan/Asset 6.svg");
    animation: floatDecoration 5.5s ease-in-out infinite;
    animation-delay: 1.2s;
}

.deco-asset-7 {
    top: 30%;
    right: 8%;
    width: 110px;
    height: 135px;
    background-image: url("../img/hiasan/Asset 7.svg");
    animation: floatDecoration 4.8s ease-in-out infinite;
    animation-delay: 0.8s;
}

.deco-asset-8 {
    bottom: 24%;
    right: 12%;
    width: 140px;
    height: 160px;
    background-image: url("../img/hiasan/Asset 8.svg");
    animation: floatDecoration 5.2s ease-in-out infinite;
    animation-delay: 0.4s;
}

.deco-asset-9 {
    top: 42%;
    left: 50%;
    width: 120px;
    height: 140px;
    background-image: url("../img/hiasan/Asset 9.svg");
    transform: translateX(-50%) rotate(6deg);
    animation: floatDecorationWithTransform 5.8s ease-in-out infinite;
    animation-delay: 0.6s;
}

@keyframes floatDecorationWithTransform {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(6deg);
    }
    50% {
        transform: translateX(-50%) translateY(-15px) rotate(6deg);
    }
}

.deco-asset-10 {
    bottom: 15%;
    left: -50px;
    width: 170px;
    height: 190px;
    background-image: url("../img/hiasan/Asset 10.svg");
    animation: floatDecoration 6.2s ease-in-out infinite;
    animation-delay: 1.4s;
}

.deco-asset-11 {
    top: 68%;
    right: -70px;
    width: 160px;
    height: 190px;
    background-image: url("../img/hiasan/Asset 4.svg");
    animation: floatDecoration 5.4s ease-in-out infinite;
    animation-delay: 0.3s;
}

.deco-asset-12 {
    top: -30px;
    left: 40%;
    width: 150px;
    height: 170px;
    background-image: url("../img/hiasan/Asset 12.svg");
    transform: translateX(-50%);
    animation: floatDecorationWithTransform 4.6s ease-in-out infinite;
    animation-delay: 0.7s;
}

.deco-asset-13 {
    bottom: -40px;
    right: 40%;
    width: 150px;
    height: 170px;
    background-image: url("../img/hiasan/Asset 13.svg");
    transform: translateX(50%) rotate(-5deg);
    animation: floatDecorationWithTransformRotate 5.6s ease-in-out infinite;
    animation-delay: 1.1s;
}

@keyframes floatDecorationWithTransformRotate {
    0%, 100% {
        transform: translateX(50%) translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateX(50%) translateY(-15px) rotate(-5deg);
    }
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
    margin-top: 5rem;
}

.card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(100px);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-soft);
    padding: 20px;
    position: relative;
    z-index: 1;
}

.hero-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

/* Section wrapper for decorations */
.section-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

/* Card decorations - positioned in front of cards */
.card-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 1;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 10;
    animation: floatDecoration 5s ease-in-out infinite;
}

/* Hero section decorations */
.hero-deco-1 {
    top: -20px;
    left: -20px;
    width: 80px;
    height: 90px;
    background-image: url("../img/hiasan/Asset 10.svg");
    animation-delay: 0s;
    transform: rotate(-12deg);
}

.hero-deco-2 {
    top: -15px;
    right: -35px;
    width: 70px;
    height: 80px;
    background-image: url("../img/hiasan/Asset 22.svg");
    animation-delay: 0.8s;
    transform: rotate(15deg);
}

.hero-deco-3 {
    top: 50%;
    left: -5px;
    width: 105px;
    height: 125px;
    background-image: url("../img/hiasan/Asset 1.svg");
    animation-delay: 1.2s;
    transform: rotate(-8deg);
}

.hero-deco-4 {
    top: 35%;
    right: -10px;
    width: 75px;
    height: 85px;
    background-image: url("../img/hiasan/Asset 13.svg");
    animation-delay: 0.4s;
    transform: rotate(10deg);
}

.hero-deco-5 {
    bottom: -80px;
    left: -10px;
    width: 85px;
    height: 95px;
    background-image: url("../img/hiasan/Asset 17.svg");
    animation-delay: 1.6s;
    transform: rotate(-15deg);
}

.hero-deco-6 {
    bottom: -140px;
    right: -45px;
    width: 112px;
    height: 122px;
    background-image: url("../img/hiasan/Asset 8.svg");
    animation-delay: 0.6s;
    transform: rotate(12deg);
}

/* Countdown section decorations */
.countdown-deco-1 {
    top: 70px;
    left: -20px;
    width: 88px;
    height: 98px;
    background-image: url("../img/hiasan/Asset 25.svg");
    animation-delay: 0.3s;
    transform: rotate(-10deg);
}

.countdown-deco-2 {
    top: 150px;
    right: -40px;
    width: 74px;
    height: 84px;
    background-image: url("../img/hiasan/Asset 6.svg");
    animation-delay: 1.1s;
    transform: rotate(12deg);
}

/* Participants section decorations */
.participants-deco-1 {
    top: 100px;
    left: -40px;
    width: 70px;
    height: 80px;
    background-image: url("../img/hiasan/Asset 18.svg");
    animation-delay: 0.7s;
    transform: rotate(-14deg);
}

.participants-deco-2 {
    top: 55px;
    right: -40px;
    width: 76px;
    height: 86px;
    background-image: url("../img/hiasan/Asset 29.svg");
    animation-delay: 1.4s;
    transform: rotate(11deg);
}

/* Detail section decorations */
.detail-deco-1 {
    top: 1000px;
    left: -40px;
    width: 72px;
    height: 82px;
    background-image: url("../img/hiasan/Asset 26.svg");
    animation-delay: 0.5s;
    transform: rotate(-9deg);
}

.detail-deco-2 {
    top: -50px;
    right: 35px;
    width: 88px;
    height: 108px;
    background-image: url("../img/hiasan/Asset 3.svg");
    animation-delay: 1.3s;
    transform: rotate(13deg);
}

/* RSVP section decorations */
.rsvp-deco-1 {
    bottom: -100px;
    left: 10px;
    width: 72px;
    height: 82px;
    background-image: url("../img/hiasan/Asset 21.svg");
    animation-delay: 0.5s;
    transform: rotate(-9deg);
}

.rsvp-deco-2 {
    top: 10px;
    right: 0px;
    width: 78px;
    height: 88px;
    background-image: url("../img/hiasan/Asset 15.svg");
    animation-delay: 1.3s;
    transform: rotate(13deg);
}

.invitation-layout {
    margin-top: 12px;
    margin-bottom: 32px;
}

.hero-title {
    margin-top: 10px;
    font-size: 1.7rem;
    line-height: 1.3;
    font-family: "Playfair Display", "Times New Roman", serif;
    /* font-style: italic; */
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.hero-subtitle {
    margin-top: 6px;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
}

.hero-opening {
    margin-top: 18px;
    font-size: 0.96rem;
    line-height: 1.6;
}

.section-intro {
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.closing-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

.rsvp-form .form-label {
    font-weight: 500;
    color: var(--accent-deep);
    display: block;
    margin-bottom: 8px;
}

.rsvp-form .mb-3 {
    margin-bottom: 18px;
}

.rsvp-form .form-control,
.rsvp-form .form-select {
    border-radius: 12px;
    border: 1px solid rgba(58, 79, 69, 0.25);
    font-size: 0.9rem;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A7863' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.rsvp-form .form-control:focus,
.rsvp-form .form-select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(144, 171, 139, 0.1);
}

.rsvp-form .form-control:hover,
.rsvp-form .form-select:hover {
    border-color: rgba(58, 79, 69, 0.35);
    background-color: rgba(255, 255, 255, 0.9);
}

.rsvp-form .form-text {
    font-size: 0.78rem;
}

/* Elegant RSVP button group */
.switch-wrapper {
    position: relative;
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

input[type="radio"].rsvp-input {
    display: none;
}

.rsvp-button {
    position: relative;
    cursor: pointer;
    padding: 12px 32px;
    border: 1px solid rgba(58, 79, 69, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    overflow: hidden;
    isolation: isolate;
}

.rsvp-button::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: linear-gradient(180deg, rgba(144, 171, 139, 0.15), transparent 100%);
    border-radius: inherit;
}

.rsvp-button:hover {
    border-color: rgba(58, 79, 69, 0.4);
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.rsvp-button:hover::after {
    opacity: 1;
}

#rsvp_yes:checked + .rsvp-button {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(144, 171, 139, 0.15), rgba(90, 120, 99, 0.1));
    color: var(--accent-deep);
    font-weight: 600;
}

#rsvp_yes:checked + .rsvp-button::after {
    opacity: 1;
    background-image: linear-gradient(180deg, rgba(144, 171, 139, 0.25), transparent 100%);
}

#rsvp_no:checked + .rsvp-button {
    border-color: rgba(58, 79, 69, 0.5);
    background: rgba(58, 79, 69, 0.08);
    color: var(--text-main);
    font-weight: 600;
}

#rsvp_no:checked + .rsvp-button::after {
    opacity: 1;
    background-image: linear-gradient(180deg, rgba(58, 79, 69, 0.12), transparent 100%);
}

/* Smaller submit button inside forms */
.rsvp-form .btn-primary {
    padding: 8px 14px;
    font-size: 0.92rem;
}

/* Make outline-style small action buttons consistent */
.rsvp-form .btn-outline {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.rsvp-proof .details-list {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
}

.fade-section {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    box-shadow: 0 12px 30px rgba(35, 60, 47, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(35, 60, 47, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--accent-deep);
    border: 1px solid rgba(58, 79, 69, 0.3);
}

.btn-outline:hover {
    background: rgba(144, 171, 139, 0.12);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(144, 171, 139, 0.18);
    color: var(--accent-deep);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section {
    margin-top: 7rem;
    margin-bottom: 7rem;
}

.section-title {
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 8px;
    margin-top: 5rem;
}

.section-divider {
    width: 88px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin: 8px 0 18px 0;
}

.muted {
    color: var(--text-muted);
}

.hero-name {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(58, 79, 69, 0.35);
    background: radial-gradient(circle at top left, #ffffff 0, #e4f0d7 40%, #f5fbec 100%);
    text-align: center;
}

.hero-name small {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.hero-name-guest {
    font-size: 1.08rem;
    font-weight: 600;
    margin-top: 4px;
    font-style: italic; 
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.participants-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}


.participant-card {
    background: radial-gradient(circle at top left, #ffffff 0, #e4f0d7 40%, #f5fbec 100%);
    border-radius: var(--card-radius);
    border: 1px solid rgba(144,171,139,0.3);
    box-shadow: 0 4px 12px rgba(35,60,47,0.08);
    padding: 28px 24px;
    position: relative;
    z-index: 1;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.participant-card:hover {
    border-color: rgba(144,171,139,0.6);
    box-shadow: 0 8px 24px rgba(35,60,47,0.15);
    transform: translateY(-2px);
}

.participant-card .participant-name {
    font-family: "Playfair Display", "Times New Roman", serif;
    /* font-style: italic; */
    font-weight: 700;
    color: var(--accent-deep);
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.participant-card .participant-role {
    font-size: 0.7rem;
    color: var(--accent);
    margin-top: 8px;
    margin-bottom: 4px;
    font-weight: 500;
}

.participant-card .participant-parent {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 4px;
}



.participant-badge {
    display: none;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
}

.details-label {
    font-weight: 500;
    color: var(--accent-deep);
}

.details-value {
    text-align: right;
    font-size: 1rem;
    /* font-weight: bold; */
}

.footer {
    text-align: center;
    font-size: 0.8rem;
    padding: 32px 16px 16px;
    color: var(--text-muted);
}

.footer-meta {
    margin-top: 6px;
}

@media (min-width: 640px) {
    .card {
        padding: 28px 32px;
    }
    .participants-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
    .participant-card {
        min-height: 320px;
    }
}

@media (min-width: 900px) {
    .participants-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
    .participant-card {
        min-height: 360px;
    }
}

/* Countdown section styling */
.countdown-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    gap: 8px;
    margin-top: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(144,171,139,0.12), rgba(90,120,99,0.08));
    border: 1px solid rgba(144,171,139,0.3);
    border-radius: 16px;
    padding: 20px 16px;
    min-width: 90px;
    box-shadow: 0 4px 12px rgba(35,60,47,0.08);
    transition: all 0.3s ease;
}

.countdown-unit:hover {
    border-color: rgba(144,171,139,0.6);
    box-shadow: 0 8px 24px rgba(35,60,47,0.15);
    transform: translateY(-2px);
}

.countdown-value {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-deep);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(35,60,47,0.1);
}

.countdown-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.countdown-divider {
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(90,120,99,0.4);
    line-height: 1;
    margin: 0 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 100%;
    }
    
    .countdown-divider {
        display: none;
    }
    
    .countdown-unit {
        min-width: 0;
        width: 100%;
        max-width: 140px;
        padding: 14px 12px;
    }
    
    .countdown-value {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
}

