@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.footer {
    margin-top: auto;
}

/* GET STARTED */
.guide-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem 1rem 6rem;
    text-align: center;
    background-color: #1b1413; 
    color: #fff;
}

.guide-container {
    max-width: 800px;
    margin: 0 auto;
}

.guide-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.guide-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #ddd;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.guide-image {
    position: absolute;
    left: 50%;
    bottom: -60px; 
    transform: translateX(-50%);
    z-index: 5;
}

.guide-image img {
    max-width: 580px; 
    height: auto;
}

/* INQUIRY PROCESS */
.inquiry-section {
    background: #fff;
    padding: 5rem 2rem;
    text-align: center;
    color: #000;
    
}

.inquiry-section h2 {
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 6rem;
    position: relative;
    display: inline-block;
    color: #000;
    padding: 0 1rem; 
    background: #fff;
    z-index: 1;
}

.inquiry-section h2::before,
.inquiry-section h2::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 9999px; 
    height: 5px;    
    background: #8E1616;
    z-index: -1;
}

.inquiry-section h2::before {
    right: 100%; 
    margin-right: 70px;
}

.inquiry-section h2::after {
    left: 100%; 
    margin-left: 60px; 
}

.inquiry-grid {
    display: grid;
    grid-template-columns: repeat(3, auto); 
    gap: 2.5rem;  /*SPACING BA NILA*/
    justify-content: center; 
}

.inquiry-box {
    background: #8E1616;
    width: 330px;  
    height: 230px; 
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem; 
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.inquiry-box p {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.5;
}

.inquiry-box .circle {
    position: absolute;
    top: -23px;       
    left: -20px;    
    background: #fff;
    color: #000;
    font-weight: 500;
    font-size: 2rem;  
    width: 75px;       
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* HOW IT WORKS */
.how-it-works {
    background: #fff;
    padding: 5rem 2rem;
    text-align: center;
    color: #000;
    margin-top: -90px;
    font-family: 'Poppins', sans-serif;
}

.how-it-works h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: #000;
}

.how-it-works h2::after {
    content: "";
    display: block;
    width: 280px;          
    height: 5px;
    background: #8E1616;
    margin: 0.5rem auto 0;
    border-radius: 2px;
    transition: transform 0.4s ease; 
    transform-origin: center;
}

.how-it-works h2:hover::after {
    transform: scaleX(1.2);
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-circle.active {
    background: #8E1616;
    color: #fff;
    border-color: #8E1616;
    transform: scale(1.1);
}

.step-circle.completed {
    background: #1b1413;
    color: #fff;
}

/* FIXED: Card Container - Set fixed min-height */
.how-card {
    background: #1b1413;
    color: #fff;
    border-radius: 15px;
    padding: 3rem 4rem;  
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    position: relative;
    min-height: 550px; /* Fixed minimum height */
    display: flex;
    flex-direction: column;
}

/* FIXED: Step Content Container */
.how-content-container {
    position: relative;
    flex: 2; /* Takes available space */
    min-height: 350px; /* Fixed height for content area */
    min-width: auto;
    overflow: hidden;
}

/* FIXED: Step Content - Consistent sizing */
.how-content {
    display: flex;
    align-items: center; /* Changed from stretch to center */
    gap: 3rem;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.how-content.active {
    opacity: 1;
    transform: translateX(0);
    position: relative; /* Changed from absolute to relative when active */
    pointer-events: all;
}

/* FIXED: Ensure all step content has same height */
.how-text {
    flex: 1;
    text-align: left;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%; /* Added to take full height */
}

.how-text h3 {
    font-size: 2.7rem;  
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #fff;
}

.how-text p {
    font-size: 1.5rem;  
    line-height: 1.7;   
    color: #fff;
    text-align: justify;
}

.how-image {
    flex: 1;
    max-width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Added to take full height */
}

.how-image img {
    max-width: 100%;
    max-height: 350px; /* Slightly reduced for better centering */
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.how-image img:hover {
    transform: scale(1.05);
}

/* Navigation Buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Push to bottom */
    padding-top: 2rem;
    border-top: 2px solid #333;
    flex-shrink: 0; /* Prevent shrinking */
}

.nav-btn {
    background: #8E1616;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 140px;
}

.nav-btn:hover:not(:disabled) {
    background: #a11d1d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(142, 22, 22, 0.3);
}

.nav-btn:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.prev-btn {
    justify-content: flex-start;
}

.next-btn {
    justify-content: flex-end;
}

.step-counter {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

/* Footer Styles */
.footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 5rem 1rem;
    margin-top: 100px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

/* underline animation sa footer nav */
.footer-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: #8E1616;
}

.footer-nav a:hover::after {
    width: 100%;
}

/* optional: active state */
.footer-nav a.active::after {
    width: 100%;
}

.footer-logo {
    height: 40px;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.footer-logo:hover {
    content: url("../images/logo.png");
}

.footer-divider {
    border: none;
    border-top: 1px solid #666;
    margin: 1.5rem auto;
    width: 80%;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-social a {
    color: #fff;
    font-size: 1.2rem;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    background: #8E1616;
    border-color: #8E1616;
}

.footer-bottom {
    font-size: 0.8rem;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .inquiry-grid {
        grid-template-columns: repeat(2, auto);
    }
}

@media (max-width: 992px) {
    .how-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .how-text, .how-image {
        max-width: 100%;
        text-align: center;
    }
    
    .how-text p {
        text-align: center;
    }
    
    .inquiry-grid {
        grid-template-columns: repeat(2, auto);
        gap: 2rem;
    }
    
    .inquiry-box {
        width: 280px;
        height: 200px;
    }
    
    .how-card {
        min-height: 600px; /* Adjust for vertical layout */
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 3rem 1rem;
    }
    
    .how-card {
        padding: 2rem;
        min-height: 550px;
    }
    
    .how-text h3 {
        font-size: 2.2rem;
    }
    
    .how-text p {
        font-size: 1.2rem;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .steps-indicator {
        gap: 1rem;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .inquiry-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .inquiry-box {
        width: 100%;
        max-width: 330px;
        margin: 0 auto;
    }
    
    .guide-container h1 {
        font-size: 2rem;
    }
    
    .guide-image img {
        max-width: 90%;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .guide-section {
        padding: 2rem 1rem 5rem;
    }
    
    .guide-container p {
        font-size: 1rem;
    }
    
    .inquiry-section h2 {
        font-size: 1.8rem;
        margin-bottom: 4rem;
    }
    
    .inquiry-box {
        height: 180px;
        padding: 1rem;
    }
    
    .inquiry-box p {
        font-size: 1.1rem;
    }
    
    .how-it-works h2 {
        font-size: 2rem;
    }
    
    .how-card {
        min-height: 500px;
        padding: 1.5rem;
    }
}

