@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat-Medium.ttf');
}

.reason_two_cont {
    width: 100vw;
    background-color: rgb(26, 24, 27);
    display: flex;
    justify-content: space-between;
    /* Entry animation */
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reason_two_cont p {
    text-align: left;
    transition: color 0.3s ease;
}

.reason_two_cont .image_container img {
    width: 400px;
    height: 600px;
    margin-left: 20px;
    align-self: center;
    border-radius: 15px;
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.6s ease-out 0.3s forwards;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.inner_text_container {
    padding: 50px;
    /* Content animation */
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.inner_text .bigger {
    font-size: 25px;
    margin-top: 20px;
    color: rgb(23, 93, 131);
    transition: color 0.3s ease;
}

.inner_text p {
    font-size: 19px;
}

.inner_text .first_p {
    margin-bottom: 30px;
}

.text_with_image p {
    font-size: 28px;
    color: rgb(232, 225, 219);
    text-align: center;
    align-self: center;
    transition: color 0.3s ease;
}

.inner_text form {
    font-family: Montserrat;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    width: 50rem;
    gap: 20px;
    /* Form animation */
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.inner_text form input,
.inner_text form button {
    height: 70px;
    transition: all 0.3s ease;
}

#phone {
    border: 1px solid #d5d5d5;
    outline: none;
    border-radius: 7px;
    width: 100%;
    font-size: 20px;
    color: rgb(26, 24, 27);
    padding: 0.8rem;
    box-shadow: 4px 4px 8px 10px rgba(34, 60, 80, 0.1);
    transition: all 0.3s ease;
}

.reason_two_line {
    display: none;
}

/* Hover effects */
.image_container img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.inner_text .bigger:hover,
.text_with_image p:hover {
    color: rgb(36, 151, 214);
}

#phone:focus {
    box-shadow: 4px 4px 8px 10px rgba(34, 60, 80, 0.2);
    border-color: rgb(23, 93, 131);
}

.inner_text form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive transitions */
@media (max-width: 1037px) {
    .reason_two_line {
        display: block;
        font-size: 70px;
        color: rgb(232, 225, 219);
        font-weight: bold;
        opacity: 0;
        animation: fadeIn 0.6s ease-out 0.5s forwards;
    }

    .reason_two_cont {
        flex-direction: column-reverse;
        transition: flex-direction 0.5s ease;
    }

    .image_container img {
        border-radius: 15px;
        margin-bottom: 20px;
        transition: border-radius 0.5s ease, margin 0.5s ease;
    }
}

@media (max-width: 588px) {
    .inner_text form {
        width: 29rem;
        transition: width 0.5s ease;
    }

    .reason_two_cont .image_container img {
        width: 300px;
        height: 450px;
        transition: width 0.5s ease;
    }
}
