/* 
 * Modern Contact Section Widget Styles 
 */

.elementor-contact-section {
    --ecs-bg-surface: rgba(18, 18, 26, 0.85);
    --ecs-surface-card: rgba(255, 255, 255, 0.03);
    --ecs-surface-hover: rgba(255, 255, 255, 0.06);
    --ecs-border-light: rgba(255, 255, 255, 0.08);
    --ecs-border-strong: rgba(255, 255, 255, 0.2);
    --ecs-text-primary: #ffffff;
    --ecs-text-secondary: #a1a1aa;
    --ecs-text-muted: #71717a;
    --ecs-accent-1: #3b82f6;
    --ecs-accent-2: #8b5cf6;
    --ecs-accent-3: #ec4899;
    --ecs-accent-glow: rgba(139, 92, 246, 0.35);
    --ecs-radius-lg: 24px;
    --ecs-radius-md: 16px;
    --ecs-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ecs-ease-spring: cubic-bezier(0.43, 0.13, 0.23, 0.96);

    position: relative;
    width: 100%;
    background: #09090b;
    color: var(--ecs-text-primary);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 4rem 2rem;
    border-radius: var(--ecs-radius-lg);
    overflow: hidden;
    box-sizing: border-box;
}

.elementor-contact-section * {
    box-sizing: border-box;
}

.elementor-contact-section .ecs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
}

/* Tag */
.elementor-contact-section .ecs-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.4rem 1rem;
    background: var(--ecs-surface-card);
    border: 1px solid var(--ecs-border-light);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ecs-text-secondary);
    margin-bottom: 1.5rem;
}

.elementor-contact-section .ecs-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ecs-accent-2);
    box-shadow: 0 0 10px var(--ecs-accent-2);
}

/* Headings */
.elementor-contact-section .ecs-heading {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem 0;
    background: linear-gradient(135deg, #ffffff 30%, var(--ecs-text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.elementor-contact-section .ecs-subheading {
    font-size: 1.05rem;
    color: var(--ecs-text-secondary);
    line-height: 1.6;
    margin: 0 0 2.5rem 0;
}

/* Info Cards Grid */
.elementor-contact-section .ecs-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.elementor-contact-section .ecs-info-card {
    background: var(--ecs-surface-card);
    border: 1px solid var(--ecs-border-light);
    border-radius: var(--ecs-radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.4s var(--ecs-ease-out), background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    text-decoration: none;
    display: block;
}

.elementor-contact-section .ecs-info-card:hover {
    background: var(--ecs-surface-hover);
    border-color: var(--ecs-border-strong);
    transform: translateY(-4px);
}

.elementor-contact-section .ecs-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ecs-border-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--ecs-text-primary);
    transition: all 0.3s ease;
}

.elementor-contact-section .ecs-card-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.elementor-contact-section .ecs-info-card:hover .ecs-card-icon {
    background: var(--ecs-accent-2);
    border-color: var(--ecs-accent-2);
    color: #ffffff;
    box-shadow: 0 8px 16px var(--ecs-accent-glow);
}

.elementor-contact-section .ecs-info-card:hover .ecs-card-icon svg {
    fill: #ffffff;
}

.elementor-contact-section .ecs-card-title {
    font-size: 0.75rem;
    color: var(--ecs-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.elementor-contact-section .ecs-card-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ecs-text-primary);
    word-break: break-word;
}

/* Form Card */
.elementor-contact-section .ecs-form-card {
    background: var(--ecs-bg-surface);
    border: 1px solid var(--ecs-border-light);
    border-radius: var(--ecs-radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.elementor-contact-section .ecs-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.elementor-contact-section .ecs-form-group {
    position: relative;
    margin-bottom: 0.25rem;
}

.elementor-contact-section .ecs-form-group.full {
    grid-column: 1 / -1;
}

/* Input Fields */
.elementor-contact-section .ecs-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ecs-border-light);
    border-radius: 14px;
    padding: 1.25rem 1rem 0.5rem;
    color: var(--ecs-text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.elementor-contact-section textarea.ecs-input {
    min-height: 130px;
    resize: vertical;
}

.elementor-contact-section .ecs-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--ecs-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s var(--ecs-ease-spring);
    transform-origin: left top;
}

.elementor-contact-section .ecs-input:focus,
.elementor-contact-section .ecs-input:not(:placeholder-shown) {
    border-color: var(--ecs-accent-2);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.elementor-contact-section .ecs-input:focus ~ .ecs-label,
.elementor-contact-section .ecs-input:not(:placeholder-shown) ~ .ecs-label,
.elementor-contact-section .wpcf7-form-control-wrap:focus-within ~ .ecs-label,
.elementor-contact-section .ecs-form-group:has(.ecs-input:focus) .ecs-label,
.elementor-contact-section .ecs-form-group:has(.ecs-input:not(:placeholder-shown)) .ecs-label,
.elementor-contact-section .ecs-form-group:has(input:focus) .ecs-label,
.elementor-contact-section .ecs-form-group:has(textarea:focus) .ecs-label,
.elementor-contact-section .ecs-form-group:has(input:not(:placeholder-shown)) .ecs-label,
.elementor-contact-section .ecs-form-group:has(textarea:not(:placeholder-shown)) .ecs-label {
    transform: translateY(-0.75rem) scale(0.75);
    color: var(--ecs-accent-2);
}

/* Submit Button */
.elementor-contact-section .ecs-submit-wrapper {
    margin-top: 1.5rem;
    position: relative;
    width: 100%;
    height: 56px;
}

.elementor-contact-section .ecs-submit-wrapper input.ecs-submit-btn {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #18181b, #27272a);
    border: 1px solid var(--ecs-border-strong);
    border-radius: 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
}


.elementor-contact-section .ecs-submit-wrapper:hover input.ecs-submit-btn {
    border-color: transparent;
    box-shadow: 0 10px 25px var(--ecs-accent-glow);
}

.elementor-contact-section .ecs-btn-text,
.elementor-contact-section .ecs-btn-icon-wrapper {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}


/* Success Message */
.elementor-contact-section .ecs-success-msg {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 14px;
    color: #34d399;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.elementor-contact-section .ecs-success-msg.active {
    display: flex;
}

/* Contact Form 7 Resets & Glassmorphism */
.elementor-contact-section .ecs-cf7-wrapper .wpcf7-form {
    margin: 0;
}

.elementor-contact-section .ecs-cf7-wrapper .wpcf7-form-control-wrap {
    display: block;
    position: relative;
}

.elementor-contact-section .ecs-cf7-wrapper .wpcf7-not-valid-tip {
    color: var(--ecs-accent-3);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    position: absolute;
    bottom: -20px;
}

.elementor-contact-section .ecs-cf7-wrapper .wpcf7-response-output {
    border-radius: var(--ecs-radius-md);
    margin: 1.5rem 0 0 0 !important;
    padding: 1rem !important;
    font-size: 0.95rem;
}

.elementor-contact-section .ecs-cf7-wrapper .wpcf7 form.invalid .wpcf7-response-output,
.elementor-contact-section .ecs-cf7-wrapper .wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: var(--ecs-accent-3) !important;
    color: var(--ecs-accent-3);
    background: rgba(236, 72, 153, 0.1);
}

.elementor-contact-section .ecs-cf7-wrapper .wpcf7 form.sent .wpcf7-response-output {
    border-color: #34d399 !important;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
}

.elementor-contact-section .ecs-cf7-wrapper .ecs-form-group {
    margin-bottom: 1.25rem;
}

.elementor-contact-section .ecs-cf7-wrapper .ecs-submit-wrapper {
    margin-top: 2rem;
}

.elementor-contact-section .ecs-cf7-wrapper .wpcf7-spinner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--ecs-text-primary);
}



/* Responsive */
@media (max-width: 991px) {
    .elementor-contact-section .ecs-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 640px) {
    .elementor-contact-section {
        padding: 2.5rem 1rem;
    }

    .elementor-contact-section .ecs-info-grid,
    .elementor-contact-section .ecs-form-grid {
        grid-template-columns: 1fr;
    }

    .elementor-contact-section .ecs-form-card {
        padding: 1.5rem;
    }
}
