/* Landing Page - Phases Section */

.landing-phases-section {
    padding: 80px 0 0; /* Remove bottom padding */
    background-color: #fff;
    position: relative; /* Needed for the full-width background */
    overflow: hidden; /* Hide horizontal overflow */
}

.phases-decoration-bg {
    position: absolute;
    top: 40px; /* Align with the text area (adjust based on padding) */
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none; /* Make it non-interactive */
    /* Removed height: 100% so it doesn't cover the whole section, just the top */
}

.phases-decoration-bg img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
    opacity: 1; /* Fully visible, no transparency */
    display: block;
}

.container {
    position: relative;
    z-index: 2; /* Ensure content is above the background */
}

.phases-header {
    margin-bottom: 40px;
    padding: 20px 0; /* Adjusted padding */
}

.phases-header-content {
    text-align: left;
    max-width: 800px;
    margin-left: 0;
}

.phases-top-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    margin: 0;
}

.phases-main-title {
    font-size: 4em;
    font-weight: 800;
    text-transform: uppercase;
    background-image: linear-gradient(90deg, #2AADDF 0%, #282561 31.46%, #282561 52.61%, #282561 74.94%, #EF3E56 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 5px 0;
    line-height: 1.1;
    display: inline;

}

.phases-sub-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2em;
    color: #007bff;
    margin-top: 0;
}

.phases-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
    margin-top: 50px;
}

.phases-image-container {
    display: flex;
}

.phases-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px; /* Restored */
}

.phases-bottom-image-container {
    margin-top: 50px; /* Space from the content above */
}

.phases-bottom-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px; /* Restored */
}

/* Gallery Styles */
.phases-gallery-container {
    margin-top: 60px;
    text-align: center;
}

.phases-gallery-header {
    margin-bottom: 30px;
}

.phases-gallery-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5em;
    color: #007bff;
    margin: 0;
    line-height: 1;
}

.phases-gallery-title {
    font-size: 2.8em;
    font-weight: 800;
    color: #0056b3; /* Darker blue */
    text-transform: uppercase;
    margin-top: 5px;
}

.phases-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 0; /* Removed gap completely */
}

.gallery-item {
    display: block;
    overflow: hidden; /* This is key to making border-radius work on the container */
    border-radius: 15px; /* Rounded corners for the container */
    padding: 5px; /* Optional: Add small padding if you want them to not overlap the border-radius visually, or remove if you want them touching */
}

.gallery-item:hover img {
    transform: scale(1.05); /* Zoom effect on hover */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 15px; /* Ensure image itself has rounded corners */
}

/* Products Section Styles (Re-structured) */
.phases-products-container {
    margin-top: 60px;
    text-align: center;
}

.phases-products-header {
    margin-bottom: 40px;
}

.phases-products-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5em;
    color: #007bff;
    margin: 0;
    line-height: 1;
}

.phases-products-title {
    font-size: 2.8em;
    font-weight: 800;
    color: #0056b3;
    text-transform: uppercase;
    margin-top: 5px;
}

.phases-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 20px; /* Adjust gap as needed */
}

.product-card {
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.product-title-wrapper {
    text-align: center;
    margin-bottom: 20px;
    /* Fix height for alignment */
    min-height: 70px; /* Sufficient height for 2 lines + padding */
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.product-card-title {
    font-size: 1.2em; /* Adjusted font size for 4 columns */
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    margin: 0;
    line-height: 1.4; /* Ensure good line spacing */
}

.product-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #007bff;
}

/* Updated Image Styles for Contain and Equal Height */
.product-main-image,
.product-bottom-image {
    margin-top: 0; /* Changed to 0 as requested */
    height: 150px; /* Reduced from 200px to 150px */
    width: 100%;
    display: flex;       /* Flexbox to center the image */
    align-items: center; /* Vertical center */
    justify-content: center; /* Horizontal center */
}

.product-main-image img,
.product-bottom-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* SHOW FULL IMAGE (no cropping) */
    border-radius: 10px;
    display: block;
}

.product-card-action {
    text-align: center;
    margin-top: 25px;
}

.product-card-btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px; /* Reduced border radius */
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
    display: block; /* Changed to block */
    width: 100%; /* Full width */
}

.product-card-btn:hover {
    background-color: #0056b3;
}

/* Form Section Styles - Redesigned to look like a card */
.phases-form-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    margin-top: 80px;
}

.phases-form-wrapper {
    display: flex; /* Use flexbox for side-by-side layout without gaps */
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    overflow: hidden; /* Ensure image stays within border radius */
}

.phases-form-image {
    width: 40%; /* Changed to 40% */
    position: relative;
}

.phases-form-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0; /* Remove individual border radius */
}

.phases-form-content {
    width: 60%; /* Changed to 60% */
    padding: 50px; /* Add substantial padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: linear-gradient(90deg, #CCFFFF 0%, #CCCCCC 100%); /* Updated background */
}

.phases-form-header {
    text-align: left; /* Changed to left */
    margin-bottom: 30px;
}

.phases-form-title {
    font-size: 1.6em;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.phases-form-subtitle {
    font-size: 2.2em;
    font-weight: 800;
    text-transform: uppercase;
    background-image: linear-gradient(90deg, #2AADDF 0%, #282561 31.46%, #282561 52.61%, #282561 74.94%, #EF3E56 100%);
    display: inline;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

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

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

/* Enhanced Input Styles - Force styles to override theme defaults */
.phases-form input[type="text"],
.phases-form input[type="tel"],
.phases-form input[type="email"],
.phases-form textarea {
    width: 100% !important;
    padding: 16px 20px !important; /* Increased padding */
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important; /* Softer rounded corners */
    font-size: 1rem !important;
    color: #333 !important;
    background-color: #f5f7fa !important; /* Very light grey background */
    transition: all 0.3s ease !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03) !important; /* Subtle inner shadow */
    margin-bottom: 0 !important; /* Remove default margins if any */
    height: auto !important; /* Allow height to be determined by padding */
    line-height: normal !important;
}

.phases-form input::placeholder,
.phases-form textarea::placeholder {
    color: #adb5bd !important;
}

.phases-form input:focus,
.phases-form textarea:focus {
    outline: none !important;
    border-color: #007bff !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1) !important; /* Focus ring effect */
}

.phases-form textarea {
    min-height: 120px !important; /* Slightly taller */
    resize: vertical !important;
}

.phases-form-submit {
    width: 100%;
    padding: 10px; /* Reduced padding to 10px */
    background-image: linear-gradient(to right, #7b2d6a, #3c1047);
    color: #fff;
    border: none;
    border-radius: 8px; /* Match input border radius */
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 1px;
}

.phases-form-submit:hover {
    transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(123,45,106,0.5);
}

.form-privacy-notice {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85em;
    color: #999;
}


/* Responsive */
@media (max-width: 1200px) {
    .phases-products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller desktops */
    }
}

@media (max-width: 992px) {
    .phases-gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }

    .phases-form-wrapper {
        flex-direction: column; /* Stack on mobile/tablet */
    }

    .phases-form-image,
    .phases-form-content {
        width: 100%;
    }

    .phases-form-image {
        height: 250px; /* Fixed height for image on mobile */
    }

    .phases-form-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .phases-content {
        grid-template-columns: 1fr;
    }

    .phases-main-title {
        font-size: 3em;
    }

    .phases-top-title {
        font-size: 1.5em;
    }

    .phases-sub-title {
        font-size: 1.8em;
    }

    .phases-header-content {
        text-align: center;
        margin: 0 auto;
    }

    .phases-decoration-bg {
        top: 20px; /* Adjust for mobile */
    }

    .phases-gallery-subtitle,
    .phases-products-subtitle,
    .phases-form-subtitle {
        font-size: 2em;
    }

    .phases-gallery-title,
    .phases-products-title,
    .phases-form-title {
        font-size: 2.2em;
    }

    .phases-gallery-grid,
    .phases-products-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }

    .form-row-2-col {
        grid-template-columns: 1fr; /* Stack form fields on mobile */
        gap: 0;
    }
}
