/* ===================================
   CONTACT PAGE - BUD BUDOTS
   Filipino-Inspired Design
   =================================== */

:root {
    --primary-blue: #3338A0;
    --gold: #FCC61D;
    --cream: #FFFBEB;
    --dark-blue: #1a1d4d;
    --light-gold: #ffd96b;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-700: #495057;
    --error-red: #dc3545;
    --success-green: #28a745;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-700);
    background-color: var(--cream);
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 70px;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    margin-top: -70px;
    padding-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Animated Wave Backgrounds */
.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    animation: wave-flow 20s linear infinite;
}

.wave-1 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,50 C300,100 600,0 900,50 C1200,100 1500,0 1800,50 L1800,120 L0,120 Z' fill='%23FCC61D' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation-duration: 25s;
}

.wave-2 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,70 C300,20 600,100 900,70 C1200,40 1500,120 1800,70 L1800,120 L0,120 Z' fill='%23FCC61D' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.wave-3 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,90 C300,40 600,120 900,90 C1200,60 1500,140 1800,90 L1800,120 L0,120 Z' fill='%23FFFBEB' opacity='0.05'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation-duration: 30s;
    animation-delay: -10s;
}

@keyframes wave-flow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Rice Grains Background */
.rice-grains {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(252, 198, 29, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 251, 235, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 25px 25px;
    animation: rice-float 60s linear infinite;
}

@keyframes rice-float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: icon-bounce 2s ease-in-out infinite;
}

.hero-icon {
    width: 60px;
    height: 60px;
    background: rgba(252, 198, 29, 0.2);
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: icon-pulse 2s ease-in-out infinite;
}

.hero-icon:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-icon:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: title-slide-up 0.8s ease-out;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: var(--cream);
    font-weight: 300;
    animation: subtitle-fade-in 1s ease-out 0.3s both;
}

@keyframes title-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitle-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================================
   CONTACT FORM SECTION
   =================================== */

.contact-form-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, var(--cream) 0%, var(--white) 100%);
}

.section-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: rgba(51, 56, 160, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-700);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(252, 198, 29, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: var(--gold);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--gray-700);
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    background: var(--white);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(252, 198, 29, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

/* Error Styling */
.form-group.error input,
.form-group.error textarea {
    border-color: var(--error-red);
    background: rgba(220, 53, 69, 0.05);
}

.error-message {
    display: none;
    font-size: 0.85rem;
    color: var(--error-red);
    margin-top: 0.5rem;
    font-weight: 500;
}

.form-group.error .error-message {
    display: block;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 6px 20px rgba(252, 198, 29, 0.4);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(252, 198, 29, 0.5);
}

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

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* ===================================
   CONTACT INFO CARDS
   =================================== */

.contact-info-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--light-gold) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(252, 198, 29, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(51, 56, 160, 0.1) 0%, rgba(252, 198, 29, 0.1) 100%);
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.info-card:hover .card-icon {
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    color: var(--white);
    transform: rotate(360deg) scale(1.1);
}

.info-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.card-detail {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-700);
    font-style: italic;
}

/* ===================================
   MAP SECTION
   =================================== */

.map-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, var(--white) 0%, var(--cream) 100%);
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--gold);
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    border-radius: 20px;
    z-index: -1;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(252, 198, 29, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(252, 198, 29, 0.6);
    }
}

.map-placeholder {
    width: 100%;
    height: 500px;
    background: var(--gray-200);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.wave-divider {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    width: 100px;
    height: 100px;
    background: rgba(252, 198, 29, 0.2);
    border: 4px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: var(--gold);
    animation: icon-pulse 2s ease-in-out infinite;
}

.cta-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    color: var(--dark-blue);
    box-shadow: 0 8px 25px rgba(252, 198, 29, 0.4);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(252, 198, 29, 0.5);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-btn.secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--cream);
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-3px) rotate(360deg);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-icons {
        gap: 1rem;
    }

    .hero-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contact-form-section,
    .contact-info-section,
    .map-section,
    .cta-section {
        padding: 3rem 1.5rem;
    }

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

    .contact-form {
        padding: 2rem 1.5rem;
    }

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

    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .map-placeholder {
        height: 350px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    .info-card {
        padding: 2rem 1.5rem;
    }

    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 1.25rem 0.75rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .info-card {
        padding: 1.75rem 1.25rem;
    }

    .card-icon {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }

    .faq-answer {
        padding: 1rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* ===================================
   ANIMATIONS & UTILITIES
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
