/* Contact Page CSS - messy human imperfections */

.contact-wrapper {
    padding: 110px 0;
    background: #f6f7fc;
}

@media (max-width: 991px) {
    .contact-wrapper {
        padding: 75px 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 85px;
}

@media (max-width: 991px) {
    .section-header {
        margin-bottom: 42px;
    }
}

.section-header h4 {
    color: #ff8b00;
    font-weight: 420;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .section-header h4 {
        margin-bottom: 12px;
    }
}

.section-header h2 {
    font-size: 44px;
    margin-top: 12px;
    margin-bottom: 22px;
    color: #333;
    font-weight: 600;
}

@media (max-width: 991px) {
    .section-header h2 {
        margin-bottom: 6px;
        margin-top: 0px;
        font-size: 32px;
    }
}

.contact_details .detail_item {
    position: relative;
    padding-left: 48px;
    margin-bottom: 32px;
}

.contact_details .detail_item .contact-icon {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 22px;
    line-height: 26px;
    color: #ff8b00;
    font-weight: 620;
}

.contact_details .detail_item h6 {
    font-size: 17px;
    line-height: 26px;
    font-weight: bold;
    margin-bottom: 0px;
    color: #273b50;
}

.contact_details .detail_item h6 a {
    color: #273b50;
    text-decoration: none;
}

.contact_details .detail_item h6 a:hover {
    color: #ff8b00;
    text-decoration: none;
}

.contact_details .detail_item p {
    font-size: 15px;
    line-height: 26px;
    padding: 3px 0px;
    color: #666;
}

.contact_form_main .form-group {
    margin-bottom: 12px;
}

.contact_form_main .form-group .form-control {
    line-height: 28px;
    color: #666;
    border: 1px solid #ececec;
    font-family: Arial, sans-serif;
    border-radius: 4px;
    padding-left: 22px;
    height: 50px;
    -webkit-transition: border-color 0.3s ease;
    -moz-transition: border-color 0.3s ease;
    -ms-transition: border-color 0.3s ease;
    -o-transition: border-color 0.3s ease;
    transition: border-color 0.3s ease;
}

.contact_form_main .form-group .form-control:focus {
    box-shadow: none;
    outline: none;
    border-color: #ff8b00;
}

.contact_form_main .form-group .form-control.placeholder {
    color: #666;
    font-size: 14px;
}

.contact_form_main .form-group .form-control:-moz-placeholder {
    color: #666;
    font-size: 14px;
}

.contact_form_main .form-group .form-control::-moz-placeholder {
    color: #666;
    font-size: 14px;
}

.contact_form_main .form-group .form-control::-webkit-input-placeholder {
    color: #666;
    font-size: 14px;
}

.contact_form_main .form-group textarea {
    resize: none;
}

.contact_form_main .form-group textarea.form-control {
    height: 145px;
    padding-top: 15px;
}

.contact_form_main .submit-button {
    margin-top: 22px;
    cursor: pointer;
}

.submit-button {
    position: relative;
    display: inline-block;
    color: #ff8b00;
    padding: 14px 38px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    outline: none !important;
    text-align: center;
    cursor: pointer;
    text-transform: capitalize;
    background: transparent;
    border: 1px solid #ff8b00;
    border-radius: 4px;
    -webkit-transition: all 0.35s ease 0s;
    -moz-transition: all 0.35s ease 0s;
    -o-transition: all 0.35s ease 0s;
    transition: all 0.35s ease 0s;
}

.submit-button:hover {
    background: #ff8b00;
    color: #fff;
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* Popup styles - messy but functional */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.popup-content {
    background: #fff;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    -webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    -moz-box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    margin: 20px;
}

.popup-header {
    padding: 25px 30px 15px 30px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -ms-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #ff8b00;
}

.popup-body {
    padding: 20px 30px;
}

.popup-body p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.popup-body p:last-child {
    margin-bottom: 0;
}

.popup-footer {
    padding: 15px 30px 25px 30px;
    text-align: center;
}

.popup-btn {
    background: #ff8b00;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    background: #ff9827;
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* Column classes for contact page */
.col-lg-4 {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 16px;
    padding-left: 16px;
}

.col-lg-8 {
    -ms-flex: 0 0 66.666667%;
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding-right: 16px;
    padding-left: 16px;
}

.col-lg-12 {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 16px;
    padding-left: 16px;
}

.col-md-6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 16px;
    padding-left: 16px;
}

.col-md-12 {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 16px;
    padding-left: 16px;
}

.row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -16px;
    margin-left: -16px;
}

.text-center {
    text-align: center !important;
}

/* Responsive breakpoints - imperfect like human code */
@media (max-width: 991.98px) {
    .col-lg-4, .col-lg-8 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .col-lg-8 {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .col-md-6 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .contact-wrapper {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .contact_details .detail_item {
        margin-bottom: 25px;
    }
    
    .popup-content {
        width: 95%;
        margin: 10px;
    }
    
    .popup-header {
        padding: 20px 25px 12px 25px;
    }
    
    .popup-header h3 {
        font-size: 20px;
    }
    
    .popup-body {
        padding: 15px 25px;
    }
    
    .popup-footer {
        padding: 12px 25px 20px 25px;
    }
}

@media (max-width: 575.98px) {
    .contact_details .detail_item {
        padding-left: 40px;
        margin-bottom: 20px;
    }
    
    .contact_details .detail_item .contact-icon {
        font-size: 20px;
    }
    
    .contact_details .detail_item h6 {
        font-size: 16px;
    }
    
    .contact_details .detail_item p {
        font-size: 14px;
    }
    
    .contact_form_main .form-group .form-control {
        padding-left: 18px;
        height: 45px;
    }
    
    .submit-button {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .popup-header {
        padding: 18px 20px 10px 20px;
    }
    
    .popup-body {
        padding: 12px 20px;
    }
    
    .popup-footer {
        padding: 10px 20px 18px 20px;
    }
    
    .popup-body p {
        font-size: 14px;
    }
}