/**
 * EazySoft Contact Page Styles
 * .ez-contact-* prefix for all contact-specific styles
 *
 * @since 2.0.0
 */

/* ============================================
   Section 1: Hero
   ============================================ */

.ez-contact-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0f1f35 0%, #1e3a5f 40%, #2a4d6e 100%);
    padding: 7rem 0 5rem;
    text-align: center;
    color: #fff;
}

.ez-contact-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ez-contact-hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: #4a90d9;
}

.ez-contact-hero__shape--1 {
    width: 500px;
    height: 500px;
    top: -200px;
    inset-inline-end: -100px;
    animation: ez-contact-float 8s ease-in-out infinite;
}

.ez-contact-hero__shape--2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    inset-inline-start: -50px;
    animation: ez-contact-float 6s ease-in-out infinite reverse;
}

.ez-contact-hero__shape--3 {
    width: 200px;
    height: 200px;
    top: 30%;
    inset-inline-start: 15%;
    animation: ez-contact-float 10s ease-in-out infinite;
    opacity: 0.05;
}

@keyframes ez-contact-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.ez-contact-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.ez-contact-hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 1.25rem;
    color: #fff;
}

.ez-contact-hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 580px;
    margin-inline: auto;
}

/* ============================================
   Section 2: Body — 2-Column Layout
   ============================================ */

.ez-contact-body {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}

/* --- Info Cards --- */

.ez-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ez-contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: var(--wp--preset--color--surface-alt, #f8fafc);
    border: 1px solid var(--wp--preset--color--border, #e2e8f0);
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Stretched link — covers entire card */
.ez-contact-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.ez-contact-card:has(.ez-contact-card__link):hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.ez-contact-card:has(.ez-contact-card__link):hover .ez-contact-card__value {
    color: var(--wp--preset--color--secondary, #4a90d9);
}

.ez-contact-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--wp--preset--color--secondary, #4a90d9) 10%, transparent);
    border-radius: 10px;
    color: var(--wp--preset--color--secondary, #4a90d9);
    padding: 8px;
}

.ez-contact-card__icon svg {
    width: 100%;
    height: 100%;
}

.ez-contact-card__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ez-contact-card__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ez-contact-card__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary, #1e3a5f);
    transition: color 0.2s ease;
}

/* --- Form Card --- */

.ez-contact-form {
    background: var(--wp--preset--color--surface, #fff);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--wp--preset--color--border, #e2e8f0);
}

.ez-contact-form__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--wp--preset--color--primary, #1e3a5f);
    margin: 0 0 1.75rem;
}

.ez-contact-form__inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Honeypot - visually hidden */
.ez-contact-form__hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.ez-contact-form__field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wp--preset--color--text, #1e293b);
    margin-bottom: 0.4rem;
}

.ez-required {
    color: #ef4444;
}

.ez-contact-form__field input,
.ez-contact-form__field select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid var(--wp--preset--color--border, #e2e8f0);
    border-radius: 8px;
    background: var(--wp--preset--color--surface-alt, #f8fafc);
    color: var(--wp--preset--color--text, #1e293b);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ez-contact-form__field input:focus,
.ez-contact-form__field select:focus {
    outline: none;
    border-color: var(--wp--preset--color--secondary, #4a90d9);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--secondary, #4a90d9) 15%, transparent);
}

.ez-contact-form__field input.ez-field-error,
.ez-contact-form__field select.ez-field-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Phone row */
.ez-contact-form__phone-row {
    display: flex;
    gap: 0.5rem;
}

.ez-contact-form__phone-row select {
    width: auto;
    min-width: 140px;
    flex-shrink: 0;
}

.ez-contact-form__phone-row input {
    flex: 1;
}

/* Submit button */
.ez-contact-form__submit {
    display: block;
    width: 100%;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--wp--preset--color--primary, #1e3a5f), var(--wp--preset--color--secondary, #4a90d9));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ez-contact-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.3);
}

.ez-contact-form__submit:active {
    transform: translateY(0);
}

.ez-contact-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Status message */
.ez-contact-form__status {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ez-contact-form__status:empty {
    display: none;
}

.ez-contact-form__status--success {
    display: block;
    color: #059669;
    background: #ecfdf5;
    padding: 0.75rem 1rem;
    border: 1px solid #a7f3d0;
}

.ez-contact-form__status--error {
    display: block;
    color: #dc2626;
    background: #fef2f2;
    padding: 0.75rem 1rem;
    border: 1px solid #fecaca;
}

/* ============================================
   Section 3: CTA
   ============================================ */

.ez-contact-cta {
    background: linear-gradient(160deg, #0f1f35 0%, #1e3a5f 40%, #2a4d6e 100%);
    padding: 5rem 0;
    text-align: center;
    color: #fff;
}

.ez-contact-cta__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 1rem;
    color: #fff;
}

.ez-contact-cta__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 2.5rem;
    max-width: 500px;
    margin-inline: auto;
    line-height: 1.7;
}

.ez-contact-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   Shared Styles (scoped to .ez-contact)
   ============================================ */

.ez-contact .ez-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ez-contact .ez-section {
    padding: 5rem 0;
}

/* Buttons */
.ez-contact .ez-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ez-contact .ez-btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.ez-contact .ez-btn--white {
    background: #fff;
    color: var(--wp--preset--color--primary, #1e3a5f);
}

.ez-contact .ez-btn--white:hover {
    background: #f0f4f8;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
    color: var(--wp--preset--color--primary, #1e3a5f);
}

.ez-contact .ez-btn--outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.ez-contact .ez-btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

/* ============================================
   Animations
   ============================================ */

.ez-contact .ez-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ez-contact .ez-fade-in.ez-visible {
    opacity: 1;
    transform: translateY(0);
}

.ez-contact .ez-stagger-children > .ez-fade-in:nth-child(1) { transition-delay: 0s; }
.ez-contact .ez-stagger-children > .ez-fade-in:nth-child(2) { transition-delay: 0.1s; }
.ez-contact .ez-stagger-children > .ez-fade-in:nth-child(3) { transition-delay: 0.1s; }
.ez-contact .ez-stagger-children > .ez-fade-in:nth-child(4) { transition-delay: 0.2s; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 992px) {
    .ez-contact-body {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ez-contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .ez-contact-hero {
        padding: 5rem 0 3.5rem;
    }

    .ez-contact-info {
        grid-template-columns: 1fr;
    }

    .ez-contact-form {
        padding: 1.75rem;
    }

    .ez-contact-form__phone-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ez-contact-form__phone-row select {
        width: 100%;
    }

    .ez-contact-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .ez-contact .ez-btn--lg {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .ez-contact-form {
        padding: 1.25rem;
    }
}
