/*==============================
            SOURCE DROPDOWN
==============================*/

.source-dropdown {
    position: relative;
    width: 100%;
}

.source-btn {
    width: 100%;
    height: 47px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    font-size: 15px;
    margin-bottom: 10px;
}

.source-btn:hover {
    border-color: var(--primary);
}

.source-btn i {
    transition: .3s;
}

.source-btn.active i {
    transform: rotate(180deg);
}

.source-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 6px;
    list-style: none;
    padding: 6px 0;
    display: none;
    z-index: 999;
    max-height: 250px;
    overflow: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
}

.source-menu.show {
    display: block;
}

.source-menu li {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 15px;
}

.source-menu li:hover {
    background: var(--primary);
    color: var(--light);
}

/*==========================================
            CONTACT
==========================================*/

.contact-top {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 575px 1fr;
    gap: 60px;
    align-items: start;
}


/*==========================================
            CONTACT INFO
==========================================*/

.section-contact {
    text-align: left;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 28px;
}

.info-box i {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-box h4 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--secondary);
}

.info-box p,
.info-box a {
    color: #666;
    line-height: 1.8;
}

.info-box a:hover {
    color: var(--primary);
}

@media (max-width:576px) {

    .section-contact {
        text-align: center;
    }

}

/*==========================================
            CONTACT FORM
==========================================*/

.selected-product {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
}

.selected-product img {
    margin: 0 auto;
}

.selected-product h2 {
    font-size: 30px;
    color: var(--primary);
    margin: 15px 0;
    text-align: center;
}

@media(max-width:768px) {

    .selected-product {
        flex-direction: column;
    }

    .selected-product img {
        width: 100%;
        height: auto;
    }

}

.contact-form {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.contact-form .submit-button {
    min-width: 180px;
    margin-top: 10px;
}

.form-group {
    position: relative;
}

.form-group label {
    position: relative;
    margin-bottom: 5px;
    display: inline-block;
}

.form-group label::after {
    content: "*";
    color: #dc3545;
    right: -10px;
    position: absolute;

}

.error {
    display: block;
    color: #dc3545;
    font-size: 14px;
}

.error-input {
    border-color: #dc3545 !important;
}

input.valid-input,
textarea.valid-input {
    border-color: #28a745 !important;
}

/*==========================================
            MAP
==========================================*/

.contact {
    padding-top: 0;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
}

.contact-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

/*==========================================
            RESPONSIVE
==========================================*/

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

@media (max-width:992px) {
    .page-banner {
        height: 220px;
    }

    .page-banner h1 {
        font-size: 38px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-info {
        text-align: center;
    }

    .info-box {
        justify-content: center;
        text-align: left;
    }

    .social-links {
        justify-content: center;
    }
}

@media(max-width:768px) {
    .page-banner {
        height: 180px;
    }

    .page-banner h1 {
        font-size: 30px;
    }

    .contact-form {
        padding: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form textarea {
        height: 150px;
    }

    .contact-map iframe {
        height: 350px;
    }
}

@media (max-width:576px) {
    .page-banner {
        height: 160px;
    }

    .page-banner h1 {
        font-size: 26px;
    }

    .contact-info h2 {
        font-size: 28px;
    }

    .contact-form {
        padding: 20px;
    }

    .info-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-map iframe {
        height: 280px;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .contact-form button {
        width: 100%;
    }
}

/*==============================
            TOAST
==============================*/

#toast {
    position: fixed;
    top: 30px;
    right: 30px;
    min-width: 320px;
    max-width: 420px;
    padding: 16px 20px;
    border-radius: 8px;
    color: var(--light);
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(120%);
    transition: all .35s ease;
    z-index: 99999;
}

#toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

#toast.success {
    background: #28a745;
}

#toast.error {
    background: #dc3545;
}

#toast.warning {
    background: #ff9800;
}

#toast.info {
    background: #2196f3;
}

@media(max-width:576px) {

    #toast {
        left: 15px;
        right: 15px;
        top: 20px;
        min-width: auto;
        max-width: none;
    }

}