
.contact-area {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-wrapper {
    width: 1200px;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 670px 500px;
    width: 1200px;
}

.info-side {
    width: 670px;
    height: 425px;                    
    padding: 40px 30px 40px 80px;     
    background: #ffffff;
}

.title-section {
    margin-bottom: 30px;
}

.title-top {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}


.title-subtitle {
    color: #1947cd;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-heading {
    font-size: 35px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 20px;
}

.main-heading .emphasis {
    color: #ffb400;
}

.description-text-block {
    font-size: 16px;
    line-height: 1.7;
    color: #5e5b5b;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: row; 
    gap: 40px;
    align-items: flex-start;
}

.detail-box {
    flex: 1;              
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-container {
    width: 62px;
    height: 62px;
    background: #FFb400;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: background 0.3s ease;
}

.icon-container::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #1947cd;
    transition: border-left-color 0.3s ease;
}

.detail-box:hover .icon-container {
    background: #1947cd;
}

.detail-box:hover .icon-container::after {
    border-left-color: #FFb400;
}

.detail-box:hover .icon-container i {
    color: #fff;
}


.icon-container i {
    color: #ffffff;
    font-size: 24px;
}

.detail-content {
    flex: 1;
}

.detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    margin-left: 20px;
}

.detail-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-links a {
    color: #222;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    margin-left: 20px;
}

.detail-links a:hover {
    color: #1947cd
}

.form-side {
    width: 500px;                     
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(195, 194, 194);
}

.form-header {
    background: #FFb400;
    padding-top: 30px;
    padding-right: 30px;
    text-align: center;
    position: relative;
    height: 122px;
    border-radius: 0;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 250px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 20px solid #1947cd;
}

.form-heading {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.form-subtext {
    font-size: 16px;
    color: #ffffff;
    opacity: 0.9;
}

.form-container {
    padding: 70px 50px 50px;
    flex: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    width: 100%;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #1947cd;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
}

.submit-btn {
    background: #FFB400;
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.4s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 400px;
}

.submit-btn::before {
    content: "";
    position: absolute;
    top: -50px;            
    left: -50px;         
    width: 80px;
    height: 80px;
    background: #1947cd;
    border-radius: 14px 0 0 0; 
    transform: rotate(45deg);
    transition: all 0.45s ease;
}

.submit-btn::after {
    content: "";
    position: absolute;
    bottom: -50px;         
    right: -50px;          
    width: 80px;
    height: 80px;
    background: #1947cd;
    border-radius: 0 0 14px 0;
    transform: rotate(45deg);
    transition: all 0.45s ease;
}

.submit-btn span,
.submit-btn i {
    position: relative;
    z-index: 2;
}

.submit-btn:hover {
    background: #1947cd;
}

.submit-btn:hover::before {
    top: 0;
    left: 0;
}

.submit-btn:hover::after {
    bottom: 0;
    right: 0;
}

.submit-btn span,
.submit-btn i {
    position: relative;
    z-index: 1;
}

.submit-btn i {
    font-size: 14px;
}

.scroll-top {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #1947cd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.scroll-top:hover {
    background: #FFA500;
    transform: translateY(-50%) scale(1.1);
}

.scroll-top i {
    color: #ffffff;
    font-size: 16px;
}

.map-section {
    width: 100%;
    height: 500px;
    position: relative;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 1024px) {
    .contact-wrapper {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .info-side {
        padding: 40px 40px;
        width: 100%;
    }

    .form-side {
        width: 100%;
    }

    .map-section {
        height: 400px;
    }
}

@media (max-width: 768px) {

    .contact-area {
        padding: 50px 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr;  
        gap: 40px;
        width: 100%;
    }

    .info-side {
        width: 100%;
        padding: 40px 25px;
        height: auto;
    }

    .contact-details {
        flex-direction: column;   
        gap: 25px;
    }

    .detail-box {
        gap: 15px;
    }

    .detail-title {
        font-size: 18px;
        margin-left: 10px;
    }

    .detail-links a {
        margin-left: 10px;
        font-size: 13px;
    }

    /* FORM AREA */
    .form-side {
        width: 100%;
        border-left: none;
    }

    .form-header {
        height: 110px;
    }

    .form-header::after {
        left: 50%;
    }

    .form-container {
        padding: 40px 25px;
    }

    .submit-btn {
        width: 100%;     
    }


    .map-section {
        height: 350px;
    }
}

@media (max-width: 480px) {

    .info-side {
        padding: 30px 20px;
    }

    .title-section h5 {
        font-size: 16px;
    }

    .main-heading {
        font-size: 28px;
    }

    .description-text-block {
        font-size: 14px;
        line-height: 1.6;
    }

    .contact-details {
        gap: 20px;
    }

    .detail-title {
        font-size: 18px;
    }

    .icon-container {
        width: 50px;
        height: 50px;
    }

    .icon-container i {
        font-size: 20px;
    }

    .form-header {
        height: 100px;
        padding-top: 20px;
    }

    .form-heading {
        font-size: 22px;
    }

    .form-subtext {
        font-size: 14px;
    }

    .form-container {
        padding: 30px 20px;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 14px 15px;
        font-size: 14px;
    }

    .submit-btn {
        width: 100%;
        padding: 15px 25px;
    }


    .map-section {
        height: 300px;
    }
}

@media (max-width: 375px) {

    .info-side {
        padding: 25px 15px;
    }

    .main-heading {
        font-size: 24px;
        line-height: 1.3;
    }

    .detail-title {
        font-size: 16px;
    }

    .detail-links a {
        font-size: 12px;
    }

    .form-header {
        height: 90px;
    }

    .form-heading {
        font-size: 20px;
    }

    .form-container {
        padding: 25px 15px;
    }

    .submit-btn {
        padding: 14px 20px;
        font-size: 13px;
    }

    .map-section {
        height: 280px;
    }
}
