/**
 * Styles for contact page
 * 
 * Color Palette: Fresh Greens
 * Primary: Sage Green (#6B9080)
 * Secondary: Forest Green (#4D7063)
 * Dark: Deep Green (#2D4739)
 * Light: Mint Cream (#F6FFF8)
 * Neutral: Pale Sage (#CCE3DE)
 */

/* Container */
.dr-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Common Text Styles */
.text-center {
    text-align: center;
}

/* Hero Section */
.contact-hero {
    background-color: #F6FFF8;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #CCE3DE;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    padding: 30px 0;
    color: #2D4739;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Contact Content Section */
.contact-content-section {
    padding: 30px 0 60px;
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 15px;
}

.contact-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4D7063;
}

/* Contact Grid Layout */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    padding: 0 15px;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: #F6FFF8;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(107, 144, 128, 0.08);
    border: 1px solid rgba(204, 227, 222, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-info-container {
    width: 350px;
    flex-shrink: 0;
}

.contact-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #2D4739;
    letter-spacing: 0.5px;
    position: relative;
}

.contact-heading:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #6B9080;
}

/* Enhanced Form Styles */
.contact-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.contact-form label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    margin-bottom: 10px;
    color: #4D7063;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #CCE3DE;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #F6FFF8;
    color: #4D7063;
    box-shadow: inset 0 1px 3px rgba(107, 144, 128, 0.05);
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: #6B9080;
    background-color: #F6FFF8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6B9080;
    box-shadow: 0 0 0 3px rgba(107, 144, 128, 0.2);
    background-color: #fff;
}

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

.form-submit {
    margin-top: 35px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #6B9080;
    color: white;
    border: 2px solid #6B9080;
    box-shadow: 0 4px 15px rgba(107, 144, 128, 0.3);
}

.btn-primary:hover {
    background-color: #4D7063;
    border-color: #4D7063;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 144, 128, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(107, 144, 128, 0.3);
}

/* Contact Info Styles */
.contact-info-box,
.contact-social-box,
.contact-hours-box {
    background-color: #F6FFF8;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.05);
    border: 1px solid rgba(204, 227, 222, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-box:hover,
.contact-social-box:hover,
.contact-hours-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-subheading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6B9080;
    color: #2D4739;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-family: 'Nunito', sans-serif;
    padding: 5px 0;
    transition: transform 0.2s ease;
}

.contact-info-item:hover {
    transform: translateX(5px);
}

.contact-info-item i {
    color: #6B9080;
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-info-item a {
    color: #4D7063;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: #6B9080;
}

/* Social Icons */
.contact-social-icons {
    display: flex;
    gap: 15px;
}

.contact-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #333;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-social-icon:hover {
    background-color: #6B9080;
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(107, 144, 128, 0.3);
}

/* Business Hours */
.contact-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Nunito', sans-serif;
}

.contact-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.contact-hours-list li:hover {
    background-color: #f9f9f9;
    padding-left: 5px;
    padding-right: 5px;
}

.contact-hours-list li:last-child {
    border-bottom: none;
}

.day {
    font-weight: 600;
    color: #2D4739;
}

.hours {
    color: #4D7063;
}

/* Map Section */
.contact-map-section {
    margin-bottom: 60px;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-map:hover {
    transform: translateY(-5px);
}

/* FAQ Section */
.contact-faq-section {
    padding: 40px 0 60px;
    background-color: #F6FFF8;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(107, 144, 128, 0.05);
    border: 1px solid rgba(204, 227, 222, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    padding: 20px 25px;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2D4739;
}

.faq-question:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #6B9080;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
    transform: rotate(180deg);
}

/* Style for h3 faq-question */
h3.faq-question {
    font-weight: 600;
    font-size: 1.2rem;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #4D7063;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 1000px;
}

/* Contact Form 7 Compatibility */
.wpcf7-form label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    margin-bottom: 10px;
    color: #4D7063;
    font-size: 0.95rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #CCE3DE;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background-color: #F6FFF8;
    color: #4D7063;
    box-shadow: inset 0 1px 3px rgba(107, 144, 128, 0.05);
}

.wpcf7-form input[type="text"]:hover,
.wpcf7-form input[type="email"]:hover,
.wpcf7-form input[type="tel"]:hover,
.wpcf7-form textarea:hover {
    border-color: #6B9080;
    background-color: #F6FFF8;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #6B9080;
    box-shadow: 0 0 0 3px rgba(107, 144, 128, 0.2);
    background-color: #fff;
}

.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    background-color: #6B9080;
    color: white;
    border: 2px solid #6B9080;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-block;
    width: auto;
    box-shadow: 0 4px 15px rgba(107, 144, 128, 0.3);
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #4D7063;
    border-color: #4D7063;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 144, 128, 0.4);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(107, 144, 128, 0.3);
}

.wpcf7-not-valid-tip {
    color: #4D7063;
    font-size: 0.9rem;
    margin-top: -15px;
    margin-bottom: 15px;
    display: block;
    font-family: 'Nunito', sans-serif;
}

.wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    border: 2px solid #ffb900 !important;
    background-color: rgba(255, 185, 0, 0.1);
}

.wpcf7-mail-sent-ok {
    border: 2px solid #46b450 !important;
    background-color: rgba(70, 180, 80, 0.1);
}

.form-error-message {
    background-color: rgba(255, 107, 107, 0.1);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.1);
}

.error {
    border-color: #ff6b6b !important;
    background-color: rgba(255, 107, 107, 0.05) !important;
}

/* Placeholder Styling */
::placeholder {
    color: #999;
    opacity: 1;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

:-ms-input-placeholder {
    color: #999;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

::-ms-input-placeholder {
    color: #999;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

/* Input with icons (optional styling) */
.input-with-icon {
    position: relative;
}

.input-with-icon input,
.input-with-icon textarea {
    padding-left: 45px;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-with-icon input:focus + i,
.input-with-icon textarea:focus + i {
    color: #ff6b6b;
}

/* Checkbox and Radio Button Styling */
.contact-form input[type="checkbox"],
.contact-form input[type="radio"],
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    display: inline-block;
    width: auto;
    margin-right: 10px;
    accent-color: #ff6b6b;
    cursor: pointer;
}

/* Custom Checkbox Style */
.custom-checkbox {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-grid {
        flex-direction: column;
    }
    
    .contact-info-container {
        width: 100%;
    }
    
    .contact-social-icons {
        justify-content: center;
    }
    
    .contact-hours-list li {
        padding: 12px 0;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        padding: 30px 0;
    }
    
    .contact-heading {
        font-size: 1.6rem;
    }
    
    .contact-subheading {
        font-size: 1.2rem;
    }
    
    .contact-content-section {
        padding: 20px 0 40px;
    }
    
    .contact-map-section {
        margin-bottom: 40px;
    }
    
    .contact-map iframe {
        height: 350px;
    }
    
    .contact-form-container,
    .contact-info-box,
    .contact-social-box,
    .contact-hours-box {
        padding: 20px;
    }
    
    .btn, 
    .wpcf7-form input[type="submit"] {
        width: 100%;
        text-align: center;
    }
    
    .contact-faq-section {
        padding: 30px 0 40px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
        padding: 25px 0;
    }
    
    .contact-text {
        font-size: 1rem;
    }
    
    .contact-grid {
        gap: 25px;
    }
    
    .contact-info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-info-item i {
        margin-bottom: 10px;
    }
    
    .contact-map iframe {
        height: 250px;
    }
    
    .faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    
    .contact-social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .contact-form input,
    .contact-form textarea,
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea {
        padding: 12px 15px;
    }
}