/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-green: #2e6930;
    --light-green: #a4d6a4;
    --bg-green: #EFF7F5;
    --primary-red: #c22a2a;
    --gold: #ffd700;
    --dark-text: #333;
    --light-text: #666;
    --white: #fff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    background-color: #e6f4e6;
    background-image: linear-gradient(120deg, #e6f4e6 0%, #f0f8f0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    color: var(--dark-text);
    line-height: 1.5;
}

.container {
    max-width: 900px;
    width: 100%;
    background-color: var(--bg-green);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    margin: 10px 0;
}

/* Decorative Elements */
.leaf-decoration {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
    color: #00390C;
    transition: var(--transition);
}

.leaf-1 {
    top: 10%;
    left: 5%;
    transform: rotate(45deg);
    font-size: clamp(3rem, 8vw, 4rem);
}

.leaf-2 {
    bottom: 10%;
    right: 5%;
    transform: rotate(-15deg);
    font-size: clamp(4rem, 10vw, 5rem);
}

/* Header Styles */
.header {
    background-color: var(--light-green);
    background-image: linear-gradient(to right, #a4d6a4, #8bc98b);
    /*padding: 12px 12px;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo img {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.tagline {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-top: 8px;
    letter-spacing: 1px;
}

/* Banner Styles */
.banner {
    background-color: var(--primary-red);
    background-image: linear-gradient(to right, #c22a2a, #d83838);
    color: var(--white);
    text-align: center;
    padding: 20px 15px;
    position: relative;
    z-index: 1;
}

.banner h2 {
    font-size: clamp(1.3rem, 5vw, 2rem);
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.no-badge {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-red);
    padding: 5px 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin: 0 5px;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.restaurant {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 2px;
    margin-top: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Subtitle Styles */
.subtitle {
    background-color: var(--white);
    text-align: center;
    padding: 20px 15px;
    position: relative;
    z-index: 1;
}

.subtitle p:first-child {
    color: var(--primary-red);
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-style: italic;
    margin-bottom: 8px;
}

.subtitle h1 {
    font-size: clamp(1rem, 3.5vw, 1.5rem);
    color: var(--primary-red);
    font-weight: bold;
    line-height: 1.4;
}

/* Main Content Styles */
.main-content {
    padding: 20px 15px;
    background-color: var(--bg-green);
    position: relative;
    z-index: 1;
}

.content-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.left-text, .right-text {
    text-align: center;
    margin: 12px 0;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    font-weight: 500;
    color: var(--dark-text);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    max-width: 100%;
    width: 100%;
}

.left-text:hover, .right-text:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.arrow {
    display: none;
}

.center-image {
    margin: 15px 0;
    text-align: center;
    transition: var(--transition);
    width: 100%;
}

.center-image:hover {
    transform: scale(1.03);
}

.center-image img {
    max-width: 180px;
    height: auto;
    /*border-radius: 10px;*/
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);*/
}

/* Bottom Text Styles */
.bottom-text {
    background-color: var(--white);
    text-align: center;
    padding: 25px 15px;
    position: relative;
    z-index: 1;
}

.bottom-text p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 500;
    color: var(--dark-text);
}

.bottom-text h3 {
    color: var(--primary-green);
    font-size: clamp(1.1rem, 4vw, 1.75rem);
    font-weight: 800;
    padding: 0 10px;
    margin-top: 8px;
    line-height: 1.4;
}

/* Language Selection Styles */
.language-selection {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 0 15px;
}

.language-button {
    padding: 12px 20px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 150px;
}

.language-button:hover {
    background-color: #265429;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.language-button.active {
    background-color: #1d4020;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
}

/* Form Styles */
#pledge-form-section {
    background-color: var(--white);
    padding: 25px 15px;
    border-radius: 10px;
    margin: 25px 15px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-header h2 {
    color: var(--primary-green);
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.form-header p {
    color: var(--light-text);
    font-size: 0.95rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group input:focus, 
.form-group select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(46, 105, 48, 0.2);
    outline: none;
}

.error-message {
    color: var(--primary-red);
    font-size: 0.85rem;
    margin-top: 5px;
    height: 20px;
}

.submit-group {
    margin-top: 25px;
}

#submitButton {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(46, 105, 48, 0.3);
}

#submitButton:hover {
    background-color: #265429;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(46, 105, 48, 0.4);
}

#submitButton:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(46, 105, 48, 0.3);
}

.button-icon {
    display: inline-flex;
}

/* Certificate Preview Styles */
.certificate-section {
    background-color: var(--white);
    padding: 25px 15px;
    border-radius: 10px;
    margin: 0 15px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.certificate-header {
    margin-bottom: 20px;
}

.certificate-header h2 {
    color: var(--primary-green);
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.certificate-header p {
    color: var(--light-text);
    font-size: 0.95rem;
}

.certificate-container {
    margin-bottom: 20px;
}

.certificate-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certificate-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.download-button, 
.share-button {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.download-button {
    background-color: var(--primary-green);
    color: var(--white);
    text-decoration: none;
}

.download-button:hover {
    background-color: #265429;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-button {
    background-color: #4267B2;
    color: var(--white);
    border: none;
}

.share-button:hover {
    background-color: #365899;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp {
    background-color: #25D366;
}

.facebook {
    background-color: #4267B2;
}

.twitter {
    background-color: #1DA1F2;
}

.email {
    background-color: #D44638;
}

.new-pledge-button {
    padding: 14px 25px;
    background-color: #666;
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.new-pledge-button:hover {
    background-color: #555;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Counter Section */
.counter-section {
    background-color: var(--primary-green);
    padding: 25px 15px;
    color: var(--white);
    text-align: center;
}

.counter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.counter-icon {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.counter-text p {
    font-size: 1rem;
    margin-bottom: 5px;
}

.counter-number {
    font-size: 2.2rem;
    font-weight: 700;
}

/* Mobile-First Responsive Styles */
@media (min-width: 480px) {
    body {
        padding: 15px;
    }
    
    .container {
        margin: 15px 0;
    }
    
    .header {
        padding: 16px 16px;
    }
    
    .logo img {
        max-width: 130px;
    }
    
    .tagline {
        font-size: 1.4rem;
    }
    
    .banner {
        padding: 22px 20px;
    }
    
    .subtitle {
        padding: 22px 20px;
    }
    
    .main-content {
        padding: 25px 20px;
    }
    
    .center-image img {
        max-width: 200px;
    }
    
    #pledge-form-section {
        padding: 25px 20px;
        margin: 0 20px 25px;
    }
    
    .certificate-section {
        padding: 25px 20px;
        margin: 0 20px 25px;
    }
}

@media (min-width: 768px) {
    body {
        padding: 20px;
    }
    
    .container {
        margin: 20px 0;
    }
    
    .header {
        padding: 25px;
    }
    
    .logo img {
        max-width: 150px;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
    
    .banner {
        padding: 25px;
    }
    
    .subtitle {
        padding: 25px;
    }
    
    .main-content {
        padding: 30px;
    }
    
    .content-row {
        flex-direction: row;
        align-items: center;
    }
    
    .left-text, .right-text {
        width: 30%;
        margin: 0;
    }
    
    .center-image {
        width: 40%;
        margin: 0;
    }
    
    .center-image img {
        max-width: 220px;
    }
    
    .arrow {
        display: block;
    }
    
    .arrow-right {
        margin-left: auto;
    }
    
    .arrow-left {
        margin-right: auto;
    }
    
    .bottom-text {
        padding: 30px;
    }
    
    #pledge-form-section {
        padding: 30px;
        margin: 0 30px 30px;
    }
    
    .form-row {
        flex-direction: row;
        gap: 20px;
    }
    
    .form-row .form-group {
        flex: 1;
    }
    
    .certificate-section {
        padding: 30px;
        margin: 0 30px 30px;
    }
    
    .certificate-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .download-button, .share-button {
        min-width: 200px;
    }
    
    .counter-container {
        flex-direction: row;
        justify-content: center;
    }
    
    .counter-icon {
        margin-bottom: 0;
        margin-right: 20px;
    }
    /* Certificate Section Styling */
.certificate-container {
    position: relative;
    text-align: center;
}

/* Explore Button Styling */
.explore-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    color: #fff;
    background-color: #28a745; /* Green color for main CTA */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.explore-button:hover {
    background-color: #218838; /* Darker green on hover */
}

/* Share Button Styling */
.share-button {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: #28a745; /* Match the green color */
    font-size: 18px;
    border-radius: 50%;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.share-button:hover {
    background-color: #28a745; /* Green background on hover */
    color: #fff; /* White text on hover */
}

/* Positioning */
.certificate-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
}

@media (min-width: 992px) {
    .container {
        margin: 40px 0;
    }
    
    .left-text, .right-text {
        padding: 20px;
    }
    
    .center-image img {
        max-width: 250px;
    }
    
    #pledge-form-section {
        padding: 35px;
        margin: 0 35px 35px;
    }
    
    .certificate-section {
        padding: 35px;
        margin: 0 35px 35px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile-specific touch improvements */
@media (max-width: 767px) {
    /* Increase touch target sizes */
    .form-group input, 
    .form-group select,
    .language-button,
    #submitButton,
    .download-button,
    .share-button,
    .social-icon,
    .new-pledge-button {
        min-height: 48px; /* Minimum recommended touch target size */
    }
    
    /* Improve form spacing on small screens */
    .form-group {
        margin-bottom: 22px;
    }
    
    /* Make error messages more visible */
    .error-message {
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    /* Sticky language selector for easy access */
    .language-selection {
        position: sticky;
        top: 0;
        background-color: var(--bg-green);
        z-index: 10;
        padding: 10px 0;
        margin: 0;
    }
    
    /* Improve form button visibility */
    #submitButton {
        padding: 16px;
        font-size: 1.1rem;
        margin-top: 10px;
    }
    
    /* Enhance mobile scrolling experience */
    html {
        scroll-behavior: smooth;
    }
    
    /* Improve tap feedback */
    .language-button:active,
    #submitButton:active,
    .download-button:active,
    .share-button:active,
    .social-icon:active,
    .new-pledge-button:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}