/* =====================================================
   STARK FUNERAL PLANS - MASTER CSS
===================================================== */

:root {
    --stark-green: #35823F;
    --stark-gold: #F2D202;
    --stark-gold-soft: #FDF9E2;
    --stark-text: #1f2933;
    --stark-light: #F4F7F5;
    --stark-white: #ffffff;
    --stark-shadow: 0 20px 40px rgba(20, 83, 45, 0.1);
}


/* --- HERO ENHANCEMENT --- */

.hero {
    padding: 40px 20px 100px;
    color: var(--stark-light);
    background: linear-gradient(135deg, #0A2E19 0%, #35823F 100%);
    clip-path: ellipse(150% 100% at 50% 0%);
    /* Adds a premium curved edge */
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--stark-gold-soft);
}


/* --- PLAN CARDS --- */

.plan-card {
    background: var(--stark-white);
    padding: 50px 30px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plan-card.featured {
    border: 2px solid var(--stark-gold);
    transform: scale(1.05);
    z-index: 5;
    box-shadow: 0 30px 60px rgba(20, 83, 45, 0.2);
}

.plan-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--stark-gold);
    color: var(--stark-green);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.price-range {
    font-size: 20px;
    background: var(--stark-gold-soft);
    padding: 12px;
    border-radius: 12px;
    margin: 20px 0;
}


/* --- DOWNLOAD SECTION (THE VAULT) --- */

#downloads {
    background: var(--stark-green);
    color: var(--stark-white);
    padding: 100px 20px;
}

#downloads h2 {
    color: var(--stark-white);
    margin-bottom: 50px;
}

.download-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.download-card:hover {
    background: var(--stark-gold);
    color: var(--stark-green);
    transform: translateY(-5px);
}

.download-card i {
    font-size: 28px;
}

.builder-section {
    padding: 40px 20px;
    background: #fff;
}

.builder-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.stark-label {
    background: #F2D202;
    color: #35823F;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 4px;
}

.select-box {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9f8;
    border: 1px solid #eee;
    border-radius: 15px;
    margin-bottom: 12px;
    transition: 0.3s;
}

.select-box.active {
    background: #fff;
    border-color: #35823F;
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.display-card {
    background: #35823F;
    color: white;
    padding: 45px;
    border-radius: 35px;
    position: sticky;
    top: 100px;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.benefit-list li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    line-height: 1.4;
}

.price-box {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-bottom: 25px;
}

.amount {
    font-size: 42px;
    font-weight: 800;
    color: #F2D202;
}

.waiting-period {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

.card-footer-info {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 11px;
    opacity: 0.6;
}

@keyframes modalPop {
    from {
        transform: scale(0.98);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .builder-grid {
        grid-template-columns: 1fr;
    }
    .display-card {
        position: relative;
        top: 0;
    }
}


/* --- MODAL BASE --- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 46, 25, 0.85);
    /* Deep green tint */
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}


/* --- HEADER --- */

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-dot {
    width: 12px;
    height: 12px;
    background: #F2D202;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.modal-header h2 {
    font-size: 28px;
    color: #35823F;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 14px;
    color: #666;
}


/* --- FORM DESIGN --- */

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #35823F;
    font-size: 18px;
}

.stark-form input,
.stark-form select {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 1.5px solid #eee;
    border-radius: 14px;
    font-size: 15px;
    background: #fcfcfc;
    transition: all 0.3s ease;
}

.stark-form input:focus {
    outline: none;
    border-color: #35823F;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 83, 45, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: #35823F;
    color: #F2D202;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #1a6b3a;
    transform: translateY(-2px);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f0f0f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.modal-footer-note {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}


/* --- ANIMATIONS --- */

@keyframes modalPop {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
}