/* General Reset */
body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
}

/* Contact Box Styling */
.contact-box {
    margin: 4em auto;
    padding: 2em;
    width: 90%;
    max-width: 1200px;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: 0.5em;
    box-shadow: 0px 5px 18px rgba(0, 0, 0, 0.2);
}

.address,
.contact-us {
    flex: 1;
    min-width: 300px;
    margin: 1rem;
    padding: 0 1em;
}

.address {
    border-right: 1px solid #ccc;
}

.address h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    color: #333;
}

.address p,
.address a {
    font-size: 1em;
    margin-bottom: 1em;
    color: #666;
}

.contact-us h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 0.5em;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

form label {
    margin: 10px 0 5px;
    font-weight: bold;
    color: #333;
}

form input,
form textarea {
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
    font-size: 1em;
    color: #333;
}

.sub-button {
    margin-top: 2em;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1em;
}

form input[type="submit"] {
    padding: 0.8em 1.2em;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

form input[type="submit"]:hover {
    background-color: #555;
}

form input[type="button"] {
    padding: 0.8em 1.2em;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 5px;
}

form input[type="button"]:hover {
    background-color: #ececec;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 0.2em;
}

.error-input {
    border-color: red;
}

/* Shape Animations */
.free-trial-area {
    position: relative;
    height: 30vh;
    width: 100%;
    margin-top: 60px;
    z-index: 1;
}

.shape10,
.shape11,
.shape12,
.shape13 {
    position: absolute;
    z-index: -1;
}

.shape10 {
    right: 30%;
    bottom: 25%;
}

.shape11 {
    left: 25%;
    bottom: 27%;
}

.shape12 {
    left: 10%;
    bottom: 50%;
}

.shape13 {
    right: 18%;
    bottom: 60%;
}

.shape10 img,
.shape12 img,
.shape13 img {
    -webkit-animation: rotateMe 20s linear infinite;
    animation: rotateMe 20s linear infinite;
}

.shape11 img {
    -webkit-animation: moveBounce 5s linear infinite;
    animation: moveBounce 5s linear infinite;
}

@keyframes rotateMe {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes moveBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design Adjustments */

/* Large devices (desktops, 1200px and up) */
@media (max-width: 1200px) {
    .contact-box {
        padding: 1.5em;
    }
}

/* Medium devices (tablets, 992px and up) */
@media (max-width: 992px) {
    .contact-box {
        flex-direction: column;
        width: 95%;
        padding: 1.5em;
    }

    .address {
        border-right: none;
        border-bottom: 1px solid #ccc;
        margin-bottom: 2em;
        text-align: center;
    }

    .contact-us {
        text-align: center;
    }
}

/* Small devices (large phones, 768px and up) */
@media (max-width: 768px) {
    .contact-box {
        margin: 1em;
        padding: 3em;
        flex-direction: column;
    }

    .address,
    .contact-us {
        min-width: 100%;
        margin: 0;
    }

    .address {
        margin-bottom: 1.5em;
        padding: 0;
    }

    form input,
    form textarea {
        font-size: 0.9em;
        padding: 10px;
    }

    form input[type="submit"],
    form input[type="button"] {
        font-size: 0.9em;
        padding: 10px;
    }
}

/* Extra small devices (small phones, 576px and up) */
@media (max-width: 576px) {
    .contact-box {
        margin: 1.5em 1em;
        padding: 2em;
    }

    form input,
    form textarea {
        padding: 8px;
        font-size: 0.85em;
    }

    form input[type="submit"],
    form input[type="button"] {
        padding: 10px 14px;
    }
}

/* Small screens (less than 375px) */
@media (max-width: 375px) {
    .contact-box {
        margin: 1em;
        padding: 1em;
    }

    .address h3,
    .contact-us h2 {
        font-size: 1.1em;
    }

    form input,
    form textarea {
        padding: 6px;
        font-size: 0.8em;
    }

    form input[type="submit"],
    form input[type="button"] {
        padding: 8px 12px;
        font-size: 0.8em;
    }
}
