.contact-main {
    background-color: #8891a3;
}

.contact-hero {
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #0d2a6a, #3a445a);
}

.contact-hero h1 {
    position: relative;
    z-index: 1;
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.contact-hero p {
    position: relative;
    z-index: 1;
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
}

.contact-details-form {
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom: 40px;
}

.contact-info-block,
.contact-form-block {
    background-color: #fff;
    border-radius: 20px 0 0 20px;
    padding: 50px;
}

.contact-form-block {
    background-color: #223663;
    color: #fff;
    border-radius: 0 20px 20px 0;
}

.contact-info-block h2,
.contact-form-block h2 {
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
}

.contact-info-block h2 {
    color: #223663;
}

.middle-triangle {
    background-color: #223663;
    width: 50px;
    height: 50px;
    position: absolute;
    right: 47%;
    top: 85%;
    transform: rotate(45deg);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #313131;
}

.info-item i {
    width: 40px;
    color: #223663;
    font-size: 1.5em;
    flex-shrink: 0;
    text-align: center;
}

.social-links {
    margin-top: 50px;
    text-align: center;
}

.social-links h3 {
    font-size: 1.5em;
    font-weight: 500;
    color: #223663;
    margin-bottom: 10px;
}

.social-links i {
    background-color: #344b81;
    border-radius: 50%;
    width: 50px;
    line-height: 50px;
    color: #fff;
    font-size: 1.5em;
    font-weight: 500;
    margin: 10px;
    transition: 0.3s all;
}

.social-links i:hover {
    transform: scale(1.05);
    background-color: #5970a5;
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #fff;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: calc(100% - 20px); 
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .button-primary {
    background-color: #eee;
    color: #223663;
    width: auto;
    padding: 12px 30px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 10px;
    border: none;
    display: block;
    margin: 20px auto 0 auto; 
    transition: 0.3s all;
}

.contact-form .button-primary:hover {
    transform: scale(1.01);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
}

.location-map {
    text-align: center;
}

.location-map h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.map-container iframe {
    width: 100%;
}

@media (max-width: 900px) {
    .contact-details-form {
        display: flex;
        flex-direction: column;
    }
    .contact-form-block {
        border-radius: 0 0 20px 20px;
    }
    .contact-info-block {
        border-radius: 20px 20px 0 0;
    }
    .middle-triangle {
        display: none;
    }
}

@media (max-width: 500px) { 
    .contact-hero{
        font-size: 12px;
    }
    .contact-details-form {
        padding: 20px;
    }
    .contact-info-block {
        padding: 20px;
        font-size: 13px;
    }
    .info-item {
        gap: 0;
    }
    .contact-form-block {
        padding: 20px;
    }
    .contact-form-block h2 {
        font-size: 24px;
        font-weight: 500;
    }
    .contact-form {
        font-size: 14px;
    }
    .location-map h2 {
        font-size: 1.5em;
    }
}

