/* Picnic Registration Form Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header (Hero) */
.church-header {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 50px 30px 40px;
    background: linear-gradient(135deg, rgba(102,126,234,1) 0%, rgba(118,75,162,1) 100%);
    isolation: isolate; /* ensure pseudo-elements layer correctly */
}

.church-header::before,
.church-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Decorative shape overlay */
.church-header::before {
    background: radial-gradient(1200px 400px at -10% 0%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%),
                radial-gradient(800px 300px at 110% 100%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 60%);
}

.church-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.church-header h2 {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.95;
}

.picnic-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.picnic-date, .picnic-venue {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 6px 18px rgba(0,0,0,0.12);
}

/* subtle divider below header */
.church-header + .slideshow-container {
    border-top: 1px solid #f0f2f6;
}

/* Contact Links */
.contact-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #0056b3;
    text-decoration: underline;
}
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.slideshow-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slide-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Announcement Section */
.announcement-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 0 0 15px 15px;
    margin-top: -1px; /* to connect with slideshow */
}

.announcement-section h2 {
    font-size: 2.5rem;
    color: #856404;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.announcement-section p {
    font-size: 1.3rem;
    color: #856404;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles */
.registration-form {
    padding: 40px;
}

.form-section {
    margin-bottom: 35px;
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

/* Form Controls */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

input:focus, select:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Mobile Number Input */
.mobile-input {
    display: flex;
    align-items: center;
    gap: 0px; /* Remove gap for seamless connection */
}

.prefix {
    background: #667eea;
    color: white;
    padding: 12px 15px;
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #667eea;
    height: 46px; /* Match input height exactly */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.mobile-input input {
    border-radius: 0 8px 8px 0;
    border-left: none;
    border: 2px solid #ddd;
    height: 46px; /* Match prefix height exactly */
    padding: 12px 15px;
    font-size: 1rem;
}

/* Member Cards */
.member-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.member-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.member-header h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0;
}

.remove-member {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.remove-member:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.amount-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
    background: #d4edda;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #c3e6cb;
}

/* Buttons */
.add-member-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.add-member-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Total Section */
.total-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffeaa7;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 35px 0;
}

.total-section h3 {
    color: #856404;
    font-size: 1.5rem;
    margin-bottom: 10px;
    border: none;
}

.total-section #totalAmount {
    font-size: 2rem;
    font-weight: 900;
    color: #28a745;
}

.payment-info {
    color: #856404;
    font-size: 1rem;
    font-style: italic;
    margin-top: 10px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-message p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: left;
}

.success-message ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

.success-message li {
    margin-bottom: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.success-message button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.success-message button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 10px;
    }

    .church-header {
        padding: 30px 15px;
    }

    .church-header h1 {
        font-size: 1.6rem;
    }

    .church-header h2 {
        font-size: 1rem;
    }

    .picnic-details {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }

    .picnic-date, .picnic-venue {
        font-size: 0.95rem;
        min-width: auto;
        padding: 8px 15px;
    }

    .slideshow-wrapper {
        height: 250px;
    }

    .slideshow-nav {
        padding: 12px 10px;
        gap: 10px;
        justify-content: space-between;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        padding: 10px;
    }

    .slide-indicators {
        gap: 3px;
        max-width: calc(100% - 90px);
        padding: 0 8px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .indicator {
        width: 9px;
        height: 9px;
        min-width: 9px;
    }

    .indicator:hover {
        transform: scale(1.3);
    }

    .announcement-section {
        padding: 40px 20px;
    }

    .announcement-section h2 {
        font-size: 2rem;
    }

    .announcement-section p {
        font-size: 1.1rem;
    }

    .registration-form {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .member-card {
        padding: 20px 15px;
    }

    .form-section h3 {
        font-size: 1.2rem;
    }

    .total-section {
        padding: 20px;
    }

    .total-section h3 {
        font-size: 1.3rem;
    }

    .total-section #totalAmount {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .church-header h1 {
        font-size: 1.35rem;
    }

    .church-header h2 {
        font-size: 0.95rem;
    }

    .registration-form {
        padding: 20px 15px;
    }

    .member-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .slideshow-nav {
        padding: 12px 8px;
        gap: 8px;
        justify-content: space-between;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        padding: 8px;
    }

    .slide-indicators {
        gap: 2px;
        max-width: calc(100% - 80px);
        padding: 0 5px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .indicator {
        width: 8px;
        height: 8px;
        min-width: 8px;
    }

    .indicator:hover {
        transform: scale(1.4);
    }

    .announcement-section {
        padding: 30px 15px;
    }

    .announcement-section h2 {
        font-size: 1.8rem;
    }

    .announcement-section p {
        font-size: 1rem;
    }
}