


@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');


.contact-header {
    color: white;
    text-align: center;
}

.contact-header .animated-text {
    font-size: 3.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 1.6em;
    overflow: hidden;
}

.fixed-text {
    font-size: 65px;
    font-weight: 600;
    color: black;
}

.changing-text-container {
    display: inline-block;
    position: relative;
    height: 1.3em;
    width: 500px;
    overflow: hidden;
    color: #3498db;
}

.changing-text {
    display: flex;
    flex-direction: column;
    animation: slide 12s linear infinite;
    font-weight: 600;
    text-align: start;
}

.changing-text span {
    height: 2em;
    line-height: 2em;
    white-space: nowrap;
    margin-left: 20px;
}

@keyframes slide {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10em); }
}

.main-contact-container {
    display: flex;
    padding: 0.5rem 2rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    justify-content: center;
}

.contact-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 900px;
    margin-right: 1rem;
}

.contact-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.contact-card h5 {
    margin: 0 0 0.5rem;
    color: #2c3e50;
    font-size: 1.25rem;
}

.contact-card p {
    margin: 0.5rem 0;
    color: #555;
}

.contact-card a {
    color: #555;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #3498db;
}

.contact-form-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 900px;
}

.progress-bar-container {
    position: relative;
    width: 10%;
    height: 600px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-right: 2rem;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    background: #2c3e50;
    height: 100%;
    width: 30%; /* Change the width to reflect progress */
    border-radius: 10px 0 0 10px;
    transition: width 0.3s;
}

.contact-form {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 80%;
    box-sizing: border-box;
}

.contact-form h2 {
    margin-top: 0;
    color: #2c3e50;
}

.contact-form label {
    display: block;
    margin: 1em 0 0.5em;
    font-weight: 600;
}

.contact-form input, .contact-form textarea {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.75em;
    width: 100%;
    box-sizing: border-box;
}

.contact-snd {
    background-color: #2c3e50;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    margin-top: 1em;
    padding: 1em 2em;
    width: 100%;
    transition: background-color 0.3s;
}

.contact-snd:hover {
    background-color: #1a252f;
}

.contact-gas-image{
    height: 10px;
}

.gas_meter{
    height: 340px;
    width: 780px;
    border-radius: 10px;
}

@media (max-width: 768px) {

    .contact-card-container {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        flex-direction: column;
    }

    .progress-bar-container {
        width: 100%;
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .contact-form {
        width: 100%;
    }
}


@media (max-width: 720px) {

    /* Adjust font sizes for smaller screens */
    .contact-header .animated-text {
        font-size: 2.5rem;
        display: none;
    }

    .fixed-text {
        font-size: 50px;
        display: none;
    }

    .changing-text-container {
        width: 100%;
        font-size: 1.2rem;
        display: none;
    }

    .changing-text span {
        margin-left: 10px;
        line-height: 1.5em;
    }

    .main-contact-container {
        flex-direction: column;
        padding: 0.5rem 1rem;
        align-items: center;
    }

    /* Contact card grid adapts to single column */
    .contact-card-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-right: 0;
        width: 100%;
    }

    .contact-card {
        padding: 1rem;
    }

    .contact-card h5 {
        font-size: 1rem;
    }

    .contact-card p {
        font-size: 0.9rem;
    }

    /* Contact form takes full width */
    .contact-form-container {
        flex-direction: column;
        align-items: center;
    }

    .progress-bar-container {
        width: 100%;
        height: 30px;
        margin-bottom: 1rem;
    }

    .progress-bar {
        height: 100%;
    }

    .contact-form {
        width: 100%;
        padding: 1.5rem;
    }

    .contact-form h2 {
        font-size: 1.5rem;
    }

    .contact-form label {
        font-size: 0.9rem;
    }

    .contact-form input, .contact-form textarea {
        font-size: 0.9rem;
        padding: 0.5em;
    }

    .contact-snd {
        font-size: 1rem;
        padding: 0.8em 1.5em;
    }

    /* Gas meter image responsive */
    .gas_meter {
        width: 100%;
        height: auto;
        display: none;
    }
}
