@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-page {
    padding: 4rem 2rem;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.contact-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.contact-info,
.contact-form {
    flex: 1 1 45%;
    min-width: 280px;
    background-color: #f9f9f9;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

.contact-info {
    animation: slideInLeft 0.8s ease-out forwards;
}

.contact-form {
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.contact-info:hover,
.contact-form:hover {
    box-shadow: 0 8px 20px rgba(255, 170, 0, 0.3);
    transform: translateY(-5px);
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #222;
    border-bottom: 2px solid #ffaa00;
    padding-bottom: 0.3rem;
    font-weight: 600;
}

.contact-info p {
    margin: 0.8rem 0;
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

.contact-info i {
    color: #ffaa00;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-info a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-info a:hover {
    color: #ffaa00;
    text-decoration: underline;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffaa00;
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.4);
}

.contact-form button {
    background-color: #ffaa00;
    color: white;
    padding: 0.8rem;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background-color: #e69900;
    transform: scale(1.05);
}

.contact-map {
    padding: 1rem;
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.6s;
}

.contact-map h2 {
    margin-bottom: 1rem;
    color: #222;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-map iframe {
    box-shadow: 0 0 5px #e69900;
    border-radius: 5px;
    height: 500px;
}

.modal {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content p {
    text-align: left;
    margin: 10px 0;
    color: #333;
    font-size: 1rem;
}

.modal-content .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-content .close-btn:hover,
.modal-content .close-btn:focus {
    color: #ff3b3b;
    outline: none;
}


@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding: 2rem 1rem;
    }

    .contact-page h1 {
        font-size: 2rem;
    }

    .contact-info h2,
    .contact-form h2,
    .contact-map h2 {
        font-size: 1.3rem;
    }

    .contact-form button {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
}