﻿/* =============================================
   COLOR VARIABLES & BASE
   ============================================= */
:root {
    --church-navy: #1B2A47;
    --church-gold: #D4AF37;
    --church-bg: #F9F7F3;
    --church-text: #4A4A4A;
}

.fellowship-page-wrapper {
    background-color: var(--church-bg);
    min-height: 100vh;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--church-text);
}

.text-navy {
    color: #1B2A47 !important;
}

.text-gold {
    color: #D4AF37 !important;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

/* Traditional serif fonts for reverent headings */
.hero-title, .section-heading {
    font-family: "Lora", "Playfair Display", "Merriweather", Georgia, serif;
    color: #1B2A47;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentlePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.animate-pulse {
    animation: gentlePulse 2.5s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.25s;
}

.delay-3 {
    animation-delay: 0.4s;
}

.delay-4 {
    animation-delay: 0.55s;
}

/* =============================================
   HERO BANNER
   ============================================= */
.fellowship-hero {
    background-color: #1B2A47;
    background-image: linear-gradient(135deg, rgba(27, 42, 71, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%), url('/images/church-pattern-bg.jpg');
    background-size: cover;
    background-position: center;
    padding-bottom: 8rem !important;
    border-bottom: 4px solid #D4AF37;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    font-family: "Lora", Georgia, serif;
}

.badge-gold {
    background-color: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.5);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

/* =============================================
   LAYOUT CARDS
   ============================================= */
.content-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    border: none;
}

.join-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    border-top: 6px solid #D4AF37;
}

.mt-n5 {
    margin-top: -5rem !important;
}

/* =============================================
   TYPOGRAPHY & IMAGES
   ============================================= */
.patron-saint-frame {
    width: 100px; /* Scaled down slightly to fit beside the header */
    height: 100px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #D4AF37, #F3E5AB);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

    .patron-saint-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border: 3px solid #FFFFFF;
    }

.mission-text {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    color: #555555;
}

    /* Elegant Drop Cap */
    .mission-text:first-of-type::first-letter {
        float: left;
        font-family: "Lora", Georgia, serif;
        font-size: 3.5rem;
        line-height: 0.8;
        padding-top: 4px;
        padding-right: 8px;
        padding-left: 3px;
        color: #1B2A47;
        font-weight: 700;
    }

/* Large Group Photo */
/* =============================================
   LARGE GROUP PHOTO
   ============================================= */
.group-photo-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(27, 42, 71, 0.1);
    border: 6px solid #F9F7F3;
    /* Removed height: 100% from the mobile baseline */
}

.group-photo-large {
    width: 100%;
    aspect-ratio: 16/9; /* Forces a beautiful landscape rectangle on mobile */
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.group-photo-wrapper:hover .group-photo-large {
    transform: scale(1.03);
}

/* DESKTOP ONLY BEHAVIOR (992px and up)
   This ensures the photo stretches to match the text column 
   only when they are sitting side-by-side. 
*/
@media (min-width: 992px) {
    .group-photo-wrapper {
        height: 100%;
    }

    .group-photo-large {
        height: 100%;
        min-height: 400px;
    }
}
/* =============================================
   FORM STYLING
   ============================================= */
.icon-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fellowship-input {
    background-color: #F9F7F3;
    border: 1px solid #E2DED5;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

    .fellowship-input:focus {
        background-color: #FFFFFF;
        border-color: #D4AF37;
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
        outline: none;
    }

.btn-fellowship {
    background-color: #1B2A47;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .btn-fellowship:hover {
        background-color: #D4AF37;
        color: #1B2A47;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2) !important;
    }



/* =============================================
   VERIFICATION & SUCCESS STATES
   ============================================= */

/* The circle behind the icons (Lock, Heart, Checkmark) */
.icon-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1); /* Soft Gold by default */
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Specific styling for the green success ring */
    .icon-ring.bg-success.bg-opacity-10 {
        background-color: rgba(25, 135, 84, 0.1) !important;
    }

/* ---------------------------------------------
   VERIFICATION: THE 6-DIGIT INPUT BOX
   --------------------------------------------- */
.verification-code-input {
    background-color: #FDFBF7;
    border: 2px solid #EAE6DF;
    border-radius: 12px;
    color: #1B2A47;
    font-family: "Courier New", Courier, monospace; /* Keeps digits perfectly aligned */
    letter-spacing: 0.75em; /* Spreads the numbers out cleanly */
    padding-left: 1em; /* Offsets the letter spacing to keep it perfectly centered */
    font-size: 2rem !important;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

    .verification-code-input:focus {
        background-color: #FFFFFF;
        border-color: #D4AF37; /* Glows gold when typing */
        box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15), inset 0 2px 4px rgba(0,0,0,0.02);
        outline: none;
    }

    .verification-code-input::placeholder {
        color: #C2B8B1;
        letter-spacing: 0.5em; /* Tighter spacing for the bullet dots */
        font-weight: 400;
    }

/* ---------------------------------------------
   VERIFICATION: TIMER BADGE
   --------------------------------------------- */
.timer-badge {
    background-color: #FFFFFF;
    color: #1B2A47;
    border: 1px solid #EAE6DF;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(27, 42, 71, 0.05);
}

    .timer-badge .time-text {
        color: #D4AF37; /* Gold timer looks more elegant than red */
        font-family: "Courier New", monospace;
        font-size: 1.1rem;
        font-weight: 700;
        margin-left: 0.3rem;
    }

/* ---------------------------------------------
   VERIFICATION: ERROR & EXPIRED ALERTS
   --------------------------------------------- */
.fellowship-alert {
    background-color: #FDFBF7;
    border: 1px solid #EAE6DF;
    border-left: 4px solid #D4AF37; /* Gold accent edge */
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.fellowship-alert-danger {
    border-left-color: #DC3545; /* Red edge for locked out */
}

/* =============================================
   NEW ANIMATIONS
   ============================================= */

/* Smooth fade for the verification sections swapping out */
.verification-section {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* The satisfying "pop in" effect for the Success Checkmark */
@keyframes scaleInCenter {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scale-in {
    animation: scaleInCenter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* =============================================
   FORM UTILITIES
   ============================================= */

/* Remove the number arrows (spinners) from the Parishioner ID input so it looks clean */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield; /* Firefox support for hiding arrows */
}

/* Utility to ensure wide tracking where needed */
.tracking-widest {
    letter-spacing: 0.5em !important;
}