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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #b8e5ff;
    color: #333;
    line-height: 1.6;
}

/* Links - Better tap targets for mobile */
a {
    color: #6B4423;
    text-decoration: underline;
    transition: color 0.2s;
}

a:hover {
    color: #543319;
}

/* Improve tap targets for links in text */
.hero-text a,
.message-box a {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.hero-text a:hover,
.message-box a:hover {
    background-color: rgba(107, 68, 35, 0.1);
}

/* Ensure proper tap targets on mobile */
@media (max-width: 768px) {
    .hero-text a,
    .message-box a {
        padding: 14px 18px;
        margin: 4px 0;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fff7e7;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo {
    height: 125px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.2s;
}

.header-logo:hover {
    opacity: 0.8;
}

.site-title {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Sansita', sans-serif;
    letter-spacing: 2px;
    color: #333;
    margin: 0;
}

/* Hero Section */
.hero {
    padding: 40px 0 0 0;
    position: relative;
    margin-bottom: -60px;
    z-index: 10;
}

.hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 40px;
}

.hero-left {
    flex: 0 0 auto;
    text-align: center;
}

.jesus-illustration {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s;
}

.jesus-illustration:hover {
    transform: scale(1.05);
}

.jesus-illustration img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Remove underline from links wrapping images */
.hero-left a,
.header-content a {
    text-decoration: none;
}

.hero-right {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    font-family: 'Sansita', sans-serif;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 10px;
}

/* Main Content */
.main-content {
    padding: 80px 0 60px;
    background-color: #b8e5ff;
}

.content-wrapper {
    background-color: #F5F1E8;
    border-radius: 30px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.content-wrapper.full-width {
    padding: 0;
    display: block;
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
}

.form-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-title {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Sansita', sans-serif;
    color: #2c3e50;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

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

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: white;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #6B4423;
}

textarea {
    resize: vertical;
}

/* Checkbox Group - Better touch targets */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    user-select: none;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Better touch targets on mobile */
@media (max-width: 768px) {
    .checkbox-group input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }
}

/* File Upload */
.file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="file"] {
    display: none;
}

.browse-btn {
    background-color: #6B4423;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.browse-btn:hover {
    background-color: #543319;
}

.file-name {
    font-size: 14px;
    color: #666;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: #6B4423;
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #543319;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

/* Map Section */
.map-section {
    display: flex;
    flex-direction: column;
}

.map-container {
    width: 100%;
    min-height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
}

/* Full Width Map Section (Homepage) */
.full-width-map-section {
    width: 100%;
}

.map-card {
    background-color: #F5F1E8;
    border-radius: 30px;
    padding: 40px;
}

.map-container-full {
    width: 100%;
    min-height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Message Section */
.message-section {
    background-color: #b8e5ff;
    padding: 60px 0;
}

.message-box {
    background-color: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.message-box h2 {
    font-size: 32px;
    font-family: 'Sansita', sans-serif;
    color: #2c3e50;
    margin-bottom: 20px;
}

.message-box p {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Prayer Section */
.prayer-section {
    background-color: #b8e5ff;
    padding: 60px 0;
}

.prayer-box {
    background-color: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.prayer-box h2 {
    font-size: 32px;
    font-family: 'Sansita', sans-serif;
    color: #2c3e50;
    margin-bottom: 20px;
}

.prayer-box p {
    font-size: 18px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

.prayer-btn {
    display: inline-block;
    background-color: #6B4423;
    color: white;
    padding: 16px 40px;
    border: 2px solid #6B4423;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(107, 68, 35, 0.3);
}

.prayer-btn:hover {
    background-color: white;
    color: #6B4423;
    border: 2px solid #6B4423;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 68, 35, 0.4);
}

/* Newsletter Section */
.newsletter-section {
    background-color: #F5F1E8;
    padding: 60px 0;
}

.newsletter-box {
    background-color: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-box h2 {
    font-size: 32px;
    font-family: 'Sansita', sans-serif;
    color: #2c3e50;
    margin-bottom: 20px;
}

.newsletter-box p {
    font-size: 18px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #6B4423;
}

.newsletter-btn {
    background-color: #6B4423;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background-color: #543319;
    transform: translateY(-2px);
}

.newsletter-message {
    margin-top: 15px;
    font-size: 14px;
    padding: 10px;
    border-radius: 6px;
}

.newsletter-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Latest Findings Section */
.latest-findings-section {
    background-color: white;
    padding: 60px 0;
}

.findings-title {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Sansita', sans-serif;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.finding-card {
    background-color: #F5F1E8;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.finding-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.finding-card-location {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.finding-card-image {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.finding-card-comment {
    font-size: 14px;
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.5;
}

.finding-card-name {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.finding-card-date {
    font-size: 11px;
    color: #bbb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 36px;
    }

    .map-container {
        min-height: 400px;
    }

    .map-container-full {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .header-logo {
        height: 80px;
    }

    .site-title {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .header-content {
        gap: 10px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-text {
        font-size: 16px;
    }

    .form-card {
        padding: 25px;
    }

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

    .map-container {
        height: 400px;
    }

    .map-container-full {
        min-height: 400px;
    }

    .message-box {
        padding: 30px;
    }

    .message-box h2 {
        font-size: 24px;
    }

    .message-box p {
        font-size: 16px;
    }

    .prayer-box {
        padding: 30px;
    }

    .prayer-box h2 {
        font-size: 24px;
    }

    .prayer-box p {
        font-size: 16px;
    }

    .prayer-btn {
        padding: 14px 30px;
        font-size: 16px;
    }

    .newsletter-box {
        padding: 30px;
    }

    .newsletter-box h2 {
        font-size: 24px;
    }

    .newsletter-box p {
        font-size: 16px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }
}

/* Custom Map Popup Styles */
.gm-style .gm-style-iw-c {
    border-radius: 12px;
    padding: 15px;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
}

.map-popup {
    text-align: center;
    max-width: 250px;
}

.map-popup img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.map-popup-jesus {
    width: 60px;
    height: auto;
    margin: 10px auto;
}

.map-popup p {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
}

.map-popup strong {
    color: #6B4423;
}
