/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Reset default margins and padding */
body {
    background: url('../images/crocheter.png') no-repeat center center fixed;
    background-size: cover;
    padding-top: 10px;
    background-color: #222;
    color: white;
}

h1 {
    font-size: 2em; /* Ensures uniform size */
    margin: 0.67em 0; /* Standard margin */
}


/* ===== Header Styles ===== */
.header-container {
    position: relative;
    margin-top: 0px;
    padding-top: 10px;
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: auto;
    z-index: 1000; /* Ensures header is above other content */
}

/* Gradient Header with Rounded Edges */
.header {
    display: grid;
    grid-template-columns: 1fr 3fr 2fr;
    align-items: center;
    position: relative;
    padding: 10px;
    color: white;
    background: linear-gradient(to right, #800080, #fbc2eb);
    text-transform: uppercase;
    text-align: center;
    margin: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: visible;
}

/* Logo */
.logo {
    grid-row: 1 / span 2;
    justify-self: start;
}

    .logo img {
        max-height: 80px;
    }

/* Title Styling */
.title {
    width: 100%;
    grid-column: 2;
    grid-row: 1; /* Ensures it stays in the first row of the header grid */
    font-size: 32px;
    font-weight: bold;
    flex-wrap: nowrap;
    align-items: center;
    display: flex;
    justify-self: end;
    align-self: stretch; /* Aligns within the header */
    justify-content: flex-end; /* Aligns menu items to the right */
    margin-top: auto; /* Pushes the navigation bar to the bottom */
}
.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}


.cat-wrapper {
    position: absolute;
    width: 100vw;
    height: 150px; /* Enough vertical space for the cat */
    overflow-x: hidden;
    z-index: 9000;
    background: transparent;
}

/* Optional: constrain mobile layouts */


.cat {
    position: absolute;
    top: 0;
    left: -100px; /* Start off-screen */
    width: 100px; /* Unified sizing */
    height: auto;
    z-index: 2000;
    will-change: transform;
    pointer-events: none; /* Avoid tapping issues */
    visibility: visible;
    transform: translateY(0); /* Reset any inherited vertical shift */
}

@supports (-webkit-touch-callout: none) {
    .cat {
        top: 0 !important;
    }
}

/* You can optionally omit .cat img if you consolidate styles on .cat */


/* ===== Navigation Menu ===== */
.nav {
    grid-column: 3 / span 2;
    grid-row: 2; /* Ensures it stays in the second row of the header grid */
    width: 100%;
    flex-wrap: nowrap;
    justify-self: end;
    display: flex;
    align-items: center;
    padding: 0px 20px;
    align-self: stretch; /* Aligns within the header */
    justify-content: flex-end; /* Aligns menu items to the right */
    margin-top: auto; /* Pushes the navigation bar to the bottom */
    z-index: 9999; /* Ensures nav is above other content */
}

/* Ensure Menu Links Stay Inline */
.nav-links {
    list-style: none;
    display: flex; /* Keeps buttons in a straight line */
    gap: 0px;
    flex-wrap: nowrap; /* Prevents wrapping */
}

    .nav-links li {
        list-style: none;
        display: inline-block;
        height: 100%;
    }

    .nav-links a {
        white-space: nowrap; /* Prevents text wrapping */
        overflow: hidden;
        text-overflow: ellipsis;
        color: white;
        padding: 10px 15px;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
        transition: background 0.3s ease;
    }

        .nav-links a:hover {
            background-color: #ff6600;
        }

.nav-toggle {
    display: none;
}

/* Hide dropdown by default */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 70px; /* Adjust based on header height */
    right: 20px;
    width: 200px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 10px;
    z-index: 1000;
}

    /* Dropdown links */
    .nav-dropdown ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-dropdown li {
        padding: 10px;
    }

    .nav-dropdown a {
        color: white;
        text-decoration: none;
        display: block;
        font-weight: bold;
    }

        .nav-dropdown a:hover {
            background-color: #ff6600;
        }

/* Profile menu container behaves like other nav items */
.profile-menu {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    margin: -10px 0px -10px -10px; /* Adds spacing between profile and other nav items */  
}

.profile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 5px 10px; /* Match .nav-links a */
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    background: none;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s ease;
    box-sizing: border-box;
    gap: 5px;
}

    .profile-toggle:hover {
        background-color: #ff6600;
    }

/* Avatar aligned with text */
.profile-pic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

/* Username style */
.profile-name {
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1;
}

/* Chevron spacing */
.chevron {
    font-size: 0.8rem;
    line-height: 1;
}

/* Dropdown menu */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    list-style: none;
    margin: 0;
    display: none;
    z-index: 1000;
}

    .profile-dropdown li {
        padding: 10px;
    }

    .profile-dropdown a {
        color: white;
        text-decoration: none;
        display: block;
        font-weight: bold;
        border-radius: 5px;
    }

        .profile-dropdown a:hover {
            background-color: #ff6600;
        }

.profile-menu.open .profile-dropdown {
    display: block;
}


/* Mobile Styling */
@media (max-width: 1148px) {
    .nav {
        display: none; /* Keep full nav hidden */
    }

    .nav-toggle {
        display: block;
        font-size: 20px;
        background: none;
        border: none;
        cursor: pointer;
        color: white;
        margin-right: 0px;
        padding: 5px 8px; /* Shrinks button spacing */
        width: 40px; /* Defines smaller width */
        height: 40px; /* Defines smaller height */
        grid-row: 1; /* Ensures it stays in row 1 */
        grid-column: 3; /* Positions in column 3 */
        justify-self: end; /* Aligns to the right within the column */
        align-self: end; /* Centers vertically */
        z-index: 9999; /* Ensures it's above other elements */
    }

    .nav-dropdown.active {
        display: block; /* Show when toggled */
    }
    .title {
        font-size: 20px; /* Adjusts title size for smaller screens */
        justify-self: center; /* Centers title on smaller screens */
    }
    .logo img {
        max-height: 60px; /* Adjusts logo size for smaller screens */
    }

    .nav-toggle:hover {
        background: none;
    }
}

.hidden {
    display: none; /* Hide elements dynamically */
}

/* ===== Login Styles =====*/

#loginmodal.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto; /* Expand width dynamically */
    max-width: 90%; /* Prevent excessive width */
    height: auto; /* Fixed height */
    overflow-y: auto; /* Enable scrolling if content exceeds height */
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9990; /* Ensure modal is above other content */
    line-height: 1.6;
}

    #loginmodal.modal > form,
    #loginmodal.modal > h2,
    #loginmodal.modal > p {
        background: #fff;
        padding: 25px 30px;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        max-width: 400px;
        width: 100%;
        text-align: center;
        line-height: 1.6;
    }

#forgotPassword {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #007BFF;
    text-decoration: none;
    line-height: 1.6;
}

    #forgotPassword:hover {
        text-decoration: underline;
        line-height: 1.6;
    }

#registerPrompt {
    text-align: center;
    margin-top: 15px;
    line-height: 1.6;
}

    #registerPrompt a {
        color: #007BFF;
        text-decoration: none;
        line-height: 1.6;
    }

        #registerPrompt a:hover {
            text-decoration: underline;
            line-height: 1.6;
        }

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    line-height: 1.6;
}

.login-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    line-height: 1.6;
}

    .login-box h2 {
        margin: 0;
        text-align: center;
        font-size: 1.4rem;
        line-height: 1.6;
    }

    .login-box input,
    .login-box button[type="submit"] {
        padding: 10px;
        font-size: 1rem;
        line-height: 1.6;
    }

.close-login {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}
.email-hint {
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    margin-top: 10px;
}
.recovery-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
}

    .recovery-links a {
        color: #0077cc;
        text-decoration: none;
        font-size: 0.85rem;
    }

        .recovery-links a:hover {
            color: #005999;
        }
.modal-content.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 500px;
    margin: auto;
    text-align: center;
}

/* ===== Logout Styles =====*/
.logout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.logout-box {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    text-align: center;
    color: #6A1B9A;
}

.logout-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .logout-buttons button {
        padding: 10px 20px;
        font-size: 1rem;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        background-color: #007BFF;
        color: #fff;
        transition: background-color 0.2s ease;
    }

        .logout-buttons button:hover {
            background-color: #0056b3;
        }

.close-logout {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* ===== Registration Styles ===== */

/* Modal Container */
#registerModalBox.register-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

    #registerModalBox.register-modal:not(.hidden) {
        display: flex;
    }

/* Modal Content */
.register-modal-content {
    background: #fff;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    color: #333;
}

/* Close Button */
.close-register-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    color: #999;
}

/* Heading */
.register-modal-content h2 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: #6A1B9A;
}

/* Intro Text */
.form-intro {
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: center;
    color: #444;
}

/* Section Dividers */
#registrationForm hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* Labels & Inputs */
#registrationForm label {
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    display: block;
}

#registrationForm input[type="email"],
#registrationForm input[type="text"],
#registrationForm input[type="file"],
#registrationForm input[type="password"] {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 5px;
    background: #fff;
    color: #333;
}
/* 🎉 Registration Verification Modal Styles */

#verificationModal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

    #verificationModal.hidden {
        display: none;
    }

.divider {
    width: 60%;
    height: 1px;
    background: #666;
    margin: 2rem auto;
}

.pulseBar {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 1rem 0;
}

.pulseSquare {
    width: 14px;
    height: 14px;
    background: #4fc3f7;
    animation: pulseAnim 1.2s infinite ease-in-out alternate;
}

    .pulseSquare:nth-child(2) {
        animation-delay: 0.2s;
    }

    .pulseSquare:nth-child(3) {
        animation-delay: 0.4s;
    }

    .pulseSquare:nth-child(4) {
        animation-delay: 0.6s;
    }

    .pulseSquare:nth-child(5) {
        animation-delay: 0.8s;
    }

    .pulseSquare:nth-child(6) {
        animation-delay: 1s;
    }

@keyframes pulseAnim {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.6);
        opacity: 1;
    }
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap; /* Optional: handles small screens */
}

    .button-row button {
        padding: 10px 16px;
        font-size: 0.95rem;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

.cooling-down {
    background-color: #888 !important;
    color: #eee;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
}

/* Password Toggle Wrapper */
.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        width: 100%;
    }
.password-rules {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-top: 6px;
    padding-left: 18px;
    color: #666;
}

    .password-rules li {
        margin-bottom: 3px;
        list-style: none;
    }
        .password-rules li::before {
            content: "•";
            margin-right: 6px;
            color: #999;
        }


        .password-rules li:has(> .valid) {
            color: green;
        }

        .password-rules li:has(> .invalid) {
            color: red;
        }

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    cursor: pointer;
    color: #888;
}

/* Helper Text */
.input-hint {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

/* Input error styles */
.input-error {
    background-color: #fff8c6; /* yellowish background */
    border: 2px solid #d9534f; /* red border */
}

/* Label error styles */
.label-error {
    color: #d9534f; /* bootstrap-style red */
    font-weight: bold;
}

.profile-pic-section {
    margin-top: 20px;
}

.upload-preview-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#profilePic {
    flex: 1;
}

#profilePreview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
    display: block;
}

/* Terms Checkbox */
.terms-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
}

    .terms-label a {
        color: #007BFF;
        text-decoration: none;
    }

        .terms-label a:hover {
            text-decoration: underline;
        }

/* Buttons */
.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 10px;
}

    .form-buttons button {
        flex: 1;
        padding: 10px;
        font-size: 1rem;
        border-radius: 6px;
        border: none;
        cursor: pointer;
    }

        .form-buttons button[type="submit"] {
            background: #4CAF50;
            color: white;
        }

    .form-buttons .cancel-button {
        background: #ccc;
        color: #333;
    }

/* Responsive Cleanup */
@media (max-width: 600px) {
    .register-modal-content {
        padding: 20px;
    }

    .form-buttons {
        flex-direction: column;
    }
}


/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto; /* Expand width dynamically */
    max-width: 90%; /* Prevent excessive width */
    height: 500px; /* Fixed height */
    overflow-y: auto; /* Enable scrolling if content exceeds height */
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9990; /* Ensure modal is above other content */
}
    .modal.active {
        display: block; /* ✅ Ensure it's visible */
        opacity: 1; /* ✅ Ensure it's not transparent */
        z-index: 9991; /* ✅ Ensure it's above other elements */
        font-family: "Arial", sans-serif; /* Change to your preferred font */
        font-size: 16px;
        color: #333; /* Dark grey text */
        background: #fff; /* White background */
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    }

.modal-content {
    position: relative;
    font-family: "Arial", sans-serif; /* Change to your preferred font */
    font-size: 16px;
    color: #333; /* Dark grey text */
    background: #fff; /* White background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
    /* ✅ Header Styling */
    .modal-content h2 {
        font-size: 20px;
        font-weight: bold;
        color: #0056b3; /* Blue header */
    }

    /* ✅ Link Styling */
    .modal-content a {
        color: #007bff;
        text-decoration: none;
        font-weight: bold;
    }

    .close:hover {
        color: #ff5555; /* Red on hover */
    }

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    z-index: 10000; /* Ensure close button is above modal content */
}

    /* ===== Main Body Styles ===== */
    .main-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent effect */
    backdrop-filter: blur(10px); /* Soft stained-glass glow */
    border-radius: 20px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
}

/* ===== Spotlight/Carousel (Main Page) Styles ===== */
/* Spotlight Section */
.spotlight-heading {
    font-size: 26px;
    color: #ff6600;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.spotlight-subtext {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.carousel-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: linear-gradient(135deg, #c7c7c7, #979797); /* Darker gradient for depth */
    border-radius: 20px;
    box-shadow: inset 0px -6px 12px rgba(0, 0, 0, 0.4), 0px 10px 25px rgba(0, 0, 0, 0.6); /* Enhanced 3D effect */
    position: relative;
    overflow: hidden;
    border: 10px solid #333; /* More defined framed border */
}

/* Carousel Structure */
.carousel {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease-in-out;
}

/* Carousel Item */
.carousel-item {
    flex: 0 0 100%;
    text-align: center;
    padding: 20px;
    position: relative;
}

/* Image Container for Precise Scaling */
.image-slide {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #222; /* Dark background for contrast */
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

    .image-slide img {
        height: 100%;
        width: auto;
        object-fit: contain; /* Maintains aspect ratio while fitting slide */
    }

/* Pattern Information */
.pattern-info {
    padding: 15px;
    background: rgba(0, 0, 0, 0.75); /* Darker overlay */
    color: white;
    border-radius: 8px;
    margin-top: 12px;
}

/* Shop Button */
.shop-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 24px;
    background: #ff6600;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.3);
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

/* Navigation Buttons */
.carousel-prev,
.carousel-next {
    background: #222;
    color: #fff;
    font-size: 26px;
    padding: 12px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

    .carousel-prev:hover,
    .carousel-next:hover {
        background: #444;
        transform: scale(1.1); /* Slight hover effect */
    }

/* Dot Navigation Indicators */
.carousel-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

    /* Individual Dot */
    .carousel-dots span {
        width: 16px;
        height: 16px;
        background: grey;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    }

        .carousel-dots span:hover {
            background: #666;
            transform: scale(1.2); /* Slight hover effect */
        }

    /* Active Dot */
    .carousel-dots .active {
        background: orange;
        box-shadow: 0px 4px 8px rgba(255, 165, 0, 0.6);
    }

/* ===== About_section Style ===== */
.about-section {
    width: 100%;
    padding: 40px;
    background-color: #FAF3E0; /* Soft beige */
    color: #333; /* Dark gray for readability */
    text-align: center;
    border-radius: 8px;
}

.section-header {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: #6A1B9A; /* A rich purple for warmth */
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.text-content {
    flex: 1;
    text-align: left;
    max-width: 60%;
    color: #444; /* Slightly lighter gray */
}

.image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    border: 4px solid #C85C5C; /* Terracotta accent */
    border-radius: 10px;
    color: #333;
}

    .image-container img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }

/* ===== GraphGhan_info ===== */
.section-container {
    padding: 50px 20px;
    background-color: #FAF3E0; /* Soft beige */
    text-align: center;
    color: #333; /* Dark grey text for readability */
    border-radius: 8px;
}

.steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FFFFFF; /* White background to separate steps */
    color: #444; /* Slightly lighter dark grey for contrast */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
}


    .step img {
        max-width: 120px;
        border-radius: 8px;
        border: 4px solid #C85C5C; /* Terracotta accent border */
        padding: 5px; /* Adds spacing inside the border */
    }

/* ===== pricing list ===== */
.pricing-container {
    width: 100%;
    padding: 40px;
    background-color: #FAF3E0; /* Soft beige */
    color: #333; /* Dark gray for readability */
    text-align: center;
    border-radius: 8px;
    align-items: center;
    display: flex;
    flex-direction: column;
}

    .pricing-container h2 {
        color: #6A1B9A; /* Rich purple for title */
    }



.pricing-table {
    width: 100%;
    display: flex;
    justify-content: center; /* Centers the table horizontally */
}

    .pricing-table table {
        min-width: 600px; /* Ensure table isn't squeezed */
        border-collapse: collapse;
        color: #000;
    }

    .pricing-table th, .pricing-table td {
        padding: 12px;
        border: 1px solid #ddd;
        color: #333;
    }

    .pricing-table th {
        background: #007bff;
    }

    .pricing-table tr:nth-child(even) {
        background: #f2f2f2;
    }

    .pricing-table tr:hover {
        background: #ddd;
        transition: 0.3s ease;
    }

/* ===== contact form style ===== */
.contact-details {
    margin-bottom: 20px;
    font-size: 18px;
}

    .contact-details a {
        color: #6A1B9A; /* Rich purple for a stylish contrast */
        text-decoration: none;
        font-weight: bold;
    }

        .contact-details a:hover {
            text-decoration: underline;
        }

.social-icon {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

    .social-icon img {
        width: 40px;
        height: auto;
        border-radius: 5px;
    }

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .contact-form label {
        font-weight: bold;
        text-align: left;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 10px;
        border: 2px solid #C85C5C; /* Terracotta accent */
        border-radius: 5px;
        font-size: 16px;
    }

    .contact-form button {
        background-color: #C85C5C; /* Terracotta button */
        color: white;
        padding: 10px 15px;
        font-size: 16px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s ease-in-out;
    }

        .contact-form button:hover {
            background-color: #9F4141; /* Darker terracotta for hover effect */
        }

/* ===== Graphghan Order form layout ===== */
.form-container {
    max-width: 600px;
    margin: 10px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Two-Column Layout */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Styling for Each Column */
.column-1, .column-2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Ensure Full Width Sections Span Both Columns */
.form-group.full-width {
    grid-column: span 2;
    width: 100%;
}

/* Make Inputs and Selects Stretch */
.form-container input,
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #800080;
    background: white;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* File Upload Section */
.form-group.file-upload {
    grid-column: span 2; /* Ensures it spans both columns */
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Ensure File Input Doesn't Stretch Too Much */
.file-upload input {
    flex-grow: 1;
    max-width: 250px;
}

/* Ensure Preview Aligns Properly */
#image-preview {
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #800080;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
    border-radius: 5px;
}

    /* Ensure Uploaded Images Scale Properly */
    #image-preview img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 5px;
    }

/* Submit Button Adjustments */
button {
    margin-top: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    width: 200px;
    margin: auto;
    display: block;
}

    /* Hover Effect */
    button:hover {
        background: #45a049;
    }

/* Responsive Tweaks */
@media (max-width: 768px) {
    .form-layout {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }

    .column-1, .column-2 {
        width: 100%;
    }
}

/* ===== T's & C's Styling ====== */
.terms-container {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: span 2; /* Ensures it spans both columns */
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap;
}

    .terms-container input {
        position: relative;
        top: 10px;
        width: auto;
        flex-shrink: 0;
    }

    .terms-container label {
        flex-grow: 1;
        white-space: nowrap;
        font-size: 14px;
    }

input#email {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ===== Footer Styles ===== */
.footer-container {
    list-style: none;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.footer {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr 2fr 1fr; /* Closer sitemap columns */
    align-items: center;
    padding: 20px;
    gap: 10px; /* Reduce space between sitemap sections */
    color: white;
    background: linear-gradient(to right, #800080, #fbc2eb);
    text-transform: uppercase;
    text-align: center;
    margin: 50px 10px 10px 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
}

.sitemap-left, .sitemap-right {
    text-align: left; /* Aligns text to the left for better readability */
    padding: 10px; /* Adds some spacing */
}

.sitemap-left {
    justify-self: start; /* Keeps the left sitemap aligned neatly */
}

.sitemap-right {
    justify-self: start; /* Prevents unwanted stretching */
}


.footer-icons img {
    width: 40px;
    height: auto;
    border-radius: 5px;
}

.footer ul, .footer-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer ul li {
        list-style: none;
    }

#cookieConsent {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    background-color: #800080;
    color: white;
    padding: 10px;
    text-align: center;
    display: none;
    border-radius: 5px;
}

    #cookieConsent button {
        background-color: #4CAF50;
        color: white;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 5px;
    }

    #cookieConsent a {
        color: #00FFFF;
        text-decoration: none;
    }

        #cookieConsent a:hover {
            text-decoration: underline;
        }