/*
 * :is(#dc, .dc-…) keeps the ID-level specificity of the former inline #widget-id
 * styles, so these rules keep precedence over Elementor's generated widget CSS.
 */

:is(#dc, .dc-contact-section) * { box-sizing: border-box; }

/* Darker shade of the accent for text, meeting WCAG AA contrast on light backgrounds */
:is(#dc, .dc-contact-section) { --accent-text: color-mix(in srgb, var(--accent) 60%, #000); }

:is(#dc, .dc-contact-section) .contact-section {
    position: relative;
    background: var(--bg);
    padding: 100px 0;
    overflow: hidden;
}

:is(#dc, .dc-contact-section) .contact-section__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
:is(#dc, .dc-contact-section) .contact-section__header {
    text-align: center;
    margin-bottom: 60px;
}

:is(#dc, .dc-contact-section) .contact-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-text);
    font-family: 'Nothing You Could Do', cursive;
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0;
    animation: cs-fadeInUp 0.8s ease 0.1s forwards;
}

:is(#dc, .dc-contact-section) .contact-section__eyebrow::before,
:is(#dc, .dc-contact-section) .contact-section__eyebrow::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

:is(#dc, .dc-contact-section) .contact-section__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 15px;
    line-height: 1.2;
    opacity: 0;
    animation: cs-fadeInUp 0.8s ease 0.2s forwards;
}

:is(#dc, .dc-contact-section) .contact-section__subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    animation: cs-fadeInUp 0.8s ease 0.3s forwards;
}

/* Grid: form + info */
:is(#dc, .dc-contact-section) .contact-section__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
    opacity: 0;
    animation: cs-fadeInUp 0.8s ease 0.4s forwards;
}

/* Form card */
:is(#dc, .dc-contact-section) .contact-section__form-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 45px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

:is(#dc, .dc-contact-section) .contact-section__form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 30px;
}

/* Contact Form 7 styling */
:is(#dc, .dc-contact-section) .wpcf7 label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

:is(#dc, .dc-contact-section) .wpcf7 p {
    margin-bottom: 20px;
}

:is(#dc, .dc-contact-section) .wpcf7 input[type="text"],
:is(#dc, .dc-contact-section) .wpcf7 input[type="email"],
:is(#dc, .dc-contact-section) .wpcf7 input[type="tel"],
:is(#dc, .dc-contact-section) .wpcf7 input[type="url"],
:is(#dc, .dc-contact-section) .wpcf7 textarea,
:is(#dc, .dc-contact-section) .wpcf7 select {
    width: 100%;
    padding: 14px 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--heading);
    background: var(--bg);
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

:is(#dc, .dc-contact-section) .wpcf7 input:focus,
:is(#dc, .dc-contact-section) .wpcf7 textarea:focus,
:is(#dc, .dc-contact-section) .wpcf7 select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(227, 168, 59, 0.1);
}

:is(#dc, .dc-contact-section) .wpcf7 textarea {
    resize: vertical;
    min-height: 130px;
}

:is(#dc, .dc-contact-section) .wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 5px;
    width: auto;
}

:is(#dc, .dc-contact-section) .wpcf7 input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(227, 168, 59, 0.3);
}

:is(#dc, .dc-contact-section) .wpcf7-response-output {
    border-radius: 10px !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    margin: 20px 0 0 !important;
    padding: 16px 20px !important;
}

:is(#dc, .dc-contact-section) .wpcf7-not-valid-tip {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #e74c3c;
    margin-top: 5px;
}

/* Info side */
:is(#dc, .dc-contact-section) .contact-section__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Info cards */
:is(#dc, .dc-contact-section) .contact-section__info-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    text-decoration: none;
    transition: all 0.35s ease;
}

:is(#dc, .dc-contact-section) a.contact-section__info-card:hover {
    transform: translateX(6px);
    border-color: rgba(227, 168, 59, 0.25);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

:is(#dc, .dc-contact-section) .contact-section__info-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid rgba(227, 168, 59, 0.35);
    border-radius: 50%;
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.35s ease;
}

:is(#dc, .dc-contact-section) .contact-section__info-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    transition: all 0.35s ease;
}

:is(#dc, .dc-contact-section) a.contact-section__info-card:hover .contact-section__info-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #fff;
}

:is(#dc, .dc-contact-section) a.contact-section__info-card:hover .contact-section__info-icon::after {
    transform: scale(0);
    opacity: 0;
}

:is(#dc, .dc-contact-section) .contact-section__info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

:is(#dc, .dc-contact-section) .contact-section__info-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-text);
}

:is(#dc, .dc-contact-section) .contact-section__info-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--heading);
}

/* Hours card */
:is(#dc, .dc-contact-section) .contact-section__hours-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

:is(#dc, .dc-contact-section) .contact-section__hours-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

:is(#dc, .dc-contact-section) .contact-section__hours-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}

:is(#dc, .dc-contact-section) .contact-section__hours-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

:is(#dc, .dc-contact-section) .contact-section__hours-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}

:is(#dc, .dc-contact-section) .contact-section__hours-row:last-child {
    border-bottom: none;
}

:is(#dc, .dc-contact-section) .contact-section__hours-day {
    color: var(--heading);
    font-weight: 500;
}

:is(#dc, .dc-contact-section) .contact-section__hours-time {
    color: var(--text);
}

/* Map */
:is(#dc, .dc-contact-section) .contact-section__map {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    margin-top: 40px;
}

:is(#dc, .dc-contact-section) .contact-section__map iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
}

/* Animations */
@keyframes cs-fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    :is(#dc, .dc-contact-section) .contact-section__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :is(#dc, .dc-contact-section) .contact-section {
        padding: 60px 0;
    }

    :is(#dc, .dc-contact-section) .contact-section__container {
        padding: 0 20px;
    }

    :is(#dc, .dc-contact-section) .contact-section__form-card {
        padding: 30px 24px;
    }
}
