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

.contact-wrapper {
    width: 1260px;
    height: auto;
    margin: 0 auto;
    overflow: visible;
}

.contact-grid {
    display: grid;
    grid-template-columns: 512px 600px;
    width: 1260px;
    gap: 200px;
}

.info-side {
    width: 512px;                
    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: #2a9df4;
    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: #ffa500;
}

.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: flex-start; 
    gap: 20px;
}


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


.detail-box:hover .icon-container {
    background: #2a9df4;
}

.detail-content {
    flex: 1;
    min-width: 0;   
}


.detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    margin-left: 20px;
    white-space: normal;    
    line-height: 1.2;       
}


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

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

.detail-links a:hover {
    color: #2a9df4;
}

.form-area{
    width: 570px;
}

.scroll-top {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #2a9df4;
    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%;
        gap: 80px;
    }

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

    .form-area {
        width: 100%;
    }
}


@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

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

    .detail-box {
        align-items: flex-start;
    }

    .detail-title,
    .detail-links a {
        margin-left: 0;
        text-align: left;
    }

    .form-area {
        width: 100%;
    }

    .info-side,
    .title-section,
    .main-heading,
    .description-text-block {
        text-align: left;
    }

    .title-section .title-top {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .contact-area {
        padding: 40px 15px;
        align-items: flex-start;
    }

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

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

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

    .contact-details {
        gap: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-box {
        gap: 15px;
    }

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

    .detail-links a {
        margin-left: 0;
        font-size: 14px;
    }

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

    .form-area {
        width: 100%;
    }

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

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


@media (max-width: 375px) {
    .main-heading {
        font-size: 22px;
    }

    .contact-area {
        padding: 30px 10px;
    }

    .detail-box {
        flex-direction: row;
        gap: 10px;
    }

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

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

    .submit-button {
        font-size: 14px;
        padding: 10px 0;
    }
}

/* Image Preview Styles */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.image-preview-item:hover {
    border-color: #2a9df4;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    padding: 0;
}

.image-preview-remove:hover {
    background: rgba(255, 0, 0, 1);
}

@media (max-width: 480px) {
    .image-preview-item {
        width: 70px;
        height: 70px;
    }

    .image-preview-remove {
        width: 18px;
        height: 18px;
        font-size: 12px;
    }
}
