/* Container for the moving background */
.color-slider {
    width: 100%;
    height: 20px;
    overflow: hidden;
    position: relative;
    top: 80px;
}

@media screen and (min-width:1550px) {
    .color-slider {
        width: 100%;
        height: 20px;
        overflow: hidden;
        position: relative;
        top: 100px;
    }
}

@media screen and (max-width:768px) {
    .color-slider {
        top: 50px;
    }
}

/* The actual animated background */
.color-slider::before {
    content: "";
    position: absolute;
    width: 300%;
    /* Extend width for a seamless transition */
    height: 100%;
    background: repeating-linear-gradient(to right,
            #428bca 0px, #428bca 250px,
            /* Blue */
            #f4c2c2 250px, #f4c2c2 500px,
            /* Pink */
            #fdb833 500px, #fdb833 750px,
            /* Yellow */
            #d4af37 750px, #d4af37 1000px,
            /* Gold */
            #b68e6a 1000px, #b68e6a 1250px,
            /* Brown */
            #d4af37 1250px, #d4af37 1500px,
            /* Gold */
            #4682b4 1500px, #4682b4 1750px
            /* Steel Blue */
        );
    animation: slideColors 10s linear infinite;
}

/* Keyframes for the continuous movement */
@keyframes slideColors {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}


/* contact form */
.section1 {
    background-color: #F5F5F5;
    padding: 20px;
    margin-top: 6%;
}

.container-contact {
    display: flex;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding: 1%;
    height: 100vh;
    width: 90%;
    margin: auto;
}

.form-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    /* Ensures vertical alignment */
}

.form-section h1 {
    font-size: 24px;
    color: #2c3e8f;
    font-weight: bold;
    margin-bottom: 20px;
}

.form-section p {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.form-group input {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #2c3e8f;
    border-bottom: 2px solid #ccc;
    outline: none;
    background: transparent;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-bottom: 2px solid #2c3e8f;
}

.form-group input::placeholder {
    color: #999;
}

.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background: transparent;
    resize: none;
    height: 80px;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    border-bottom: 2px solid #2c3e8f;
}

.form-group textarea::placeholder {
    color: #999;
    /* border-bottom: 2px solid #2c3e8f; */
}

.char-count {
    font-size: 14px;
    color: #777;
    margin-top: -10px;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    resize: none;
}

.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 2px solid #1a2566;
    border-radius: 4px;
    outline: none;
    resize: none;
    height: 100px;
    margin-top: 30px;
}

.form-section button {
    background-color: #2c3e8f;
    color: white;
    border: none;
    text-align: center;
    width: 50%;
    margin: auto;
    padding: 10px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: -10px;

}

.form-section button:hover {
    background-color: #1a2566;
}

.image-section {

    background-image: url('../images/contact-bg-2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 100%;
    height: 80vh;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 2%;
}

.image-section .para {
    font-size: 14px;
    color: white;
    line-height: 1.6;
    text-align: center;
    width: 60%;
    padding: 15px;
    margin-left:4%;
    /* Adds subtle readability */
    border-radius: 10px;
}

@media screen and (min-width: 1550px) {
    .container-contact {
        width: 80%;
        max-width: 1400px;
        margin: 50px auto;
        height: 90vh;
        padding: 2%;
    }

    .form-section {
        padding: 50px;
    }

    .form-section h1 {
        font-size: 28px;
    }

    .form-section p {
        font-size: 16px;
    }

    .form-group input {
        font-size: 16px;
        padding: 18px;

    }
    .form-group textarea{
        font-size: 16px;
        padding: 18px;
        margin-top: 10%;

    }

    .form-section button {
        font-size: 18px;
        padding: 12px 24px;
        margin-top: 20px;
    }

    .image-section {
        height: 80vh;
        background-size: cover;
        border-radius: 20px;
    }

    .image-section .para {
        font-size: 16px;
        width: 60%;
        padding: 20px;
    }
}


@media screen and (min-width:1024px) and (max-width:1280px) {
    .image-section .para {
        width: 70%;
    }
}

.map {
    width: 100%;
    height: 200px;
}

/* mobile view for secrion1 */
/* Contact Form Mobile View */
@media only screen and (max-width: 768px) {
    .section1 {
        margin-top: 10%;
    }

    .container-contact {
        flex-direction: column;
        padding: 10px;
        width: 100%;
        height: auto;
        margin: 20px 0;
        box-shadow: none;
        border-radius: 5px;
    }

    .form-section {
        padding: 20px;
        flex: 1;
        /* margin-top: 20px; */
        text-align: center;
    }

    .form-section h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .form-section p {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .form-group {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
        border: 2px solid #ccc;
        border-radius: 4px;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #2c3e8f;
    }

    .form-group textarea {
        height: 120px;
    }

    .char-count {
        font-size: 12px;
        color: #777;
        margin-top: -8px;
    }

    .form-section button {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 4px;
        width: 100%;
        margin-top: 15px;
    }

    .image-section {
        background-image: url(../images/contact-bg-2.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        width: 90%;
        height: 40vh;
        border-radius: 10px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        margin: auto;
    }

    .image-section .para {
        font-size: 12px;
        color: white;
        line-height: 1.4;
        text-align: center;
        width: 80%;
        padding: 10px;
        border-radius: 8px;
    }
}

/* unlock */
.unlock-con {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding: 2%;
}

/* mobiel view section */
@media screen and (max-width:768px) {
    .fw-bold {
        font-size: 20px;
    }

    .fs-5 {
        font-size: 20px !important;
    }
}