/**
 * Contact Page - Ultra Hyper Premium Design
 * Kontomistrz Theme
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
.contacts-hero {
    --contact-primary: #493EFB;
    --contact-secondary: #7C3AED;
    --contact-accent: #FFA135;
    --contact-gradient: linear-gradient(135deg, #493EFB 0%, #7C3AED 50%, #A855F7 100%);
    --contact-glass: rgba(255, 255, 255, 0.85);
    --contact-shadow: 0 25px 50px -12px rgba(73, 62, 251, 0.25);
    --contact-glow: 0 0 40px rgba(73, 62, 251, 0.3);
}

/* ============================================
   HERO SECTION - Ultra Premium
   ============================================ */
.contacts-hero {
    position: relative;
    padding-top: 60px !important;
    padding-bottom: 80px !important;
    background: linear-gradient(135deg, #F0F4FF 0%, #E8EEFF 50%, #F5F3FF 100%) !important;
    overflow: hidden;
}

/* Animated gradient orbs */
.contacts-hero::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(73, 62, 251, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 15s ease-in-out infinite;
    pointer-events: none;
}

.contacts-hero::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 12s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================
   TITLE - Ultra Premium
   ============================================ */
.contacts-hero__title {
    text-align: center;
    font-size: var(--text-5xl, 48px) !important;
    font-family: var(--font-heading, 'Manrope', sans-serif) !important;
    font-weight: var(--font-extrabold, 800) !important;
    background: var(--contact-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.02em;
}

.contacts-hero__title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--contact-gradient);
    border-radius: 4px;
    animation: shimmerLine 3s ease-in-out infinite;
}

@keyframes shimmerLine {
    0%, 100% { width: 80px; opacity: 1; }
    50% { width: 120px; opacity: 0.8; }
}

/* ============================================
   TEXT CONTENT
   ============================================ */
.contacts-hero__text {
    text-align: center;
}

.contacts-hero__text > p {
    font-size: var(--text-lg, 18px) !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-weight: var(--font-normal, 400) !important;
    color: var(--color-text-secondary, #4B5563) !important;
    max-width: 600px;
    margin: 24px auto 0 auto !important;
    line-height: var(--leading-relaxed, 1.65) !important;
}

/* ============================================
   CONTACT FORM - Glass Morphism Ultra Premium
   ============================================ */
.contacts-hero__text .wpcf7 {
    background: var(--contact-glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px !important;
    padding: 48px !important;
    box-shadow: var(--contact-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.8),
                0 0 0 1px rgba(73, 62, 251, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 48px !important;
}

/* Decorative gradient line at top */
.contacts-hero__text .wpcf7::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--contact-gradient);
    background-size: 200% 100%;
    animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Corner decorations */
.contacts-hero__text .wpcf7::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(73, 62, 251, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ============================================
   FORM FIELDS - Premium Styling
   ============================================ */
.contacts-hero .wpcf7-form .form {
    gap: 12px !important;
}

.contacts-hero .wpcf7-form .form__row {
    margin-bottom: 0 !important;
}

.contacts-hero .wpcf7-form .form__row label {
    font-size: var(--text-sm, 14px) !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-weight: var(--font-semibold, 600) !important;
    color: var(--color-text-primary, #1F2937) !important;
    gap: 4px !important;
}

.contacts-hero .wpcf7-form .form__row .req {
    font-weight: var(--font-medium, 500) !important;
    color: var(--color-text-muted, #6B7280) !important;
}

.contacts-hero .wpcf7-form .form__row .req span {
    color: #EF4444 !important;
}

/* Input fields - Ultra Premium */
.contacts-hero .wpcf7-form input[type="text"],
.contacts-hero .wpcf7-form input[type="email"],
.contacts-hero .wpcf7-form input[type="tel"],
.contacts-hero .wpcf7-form textarea {
    border: 2px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: var(--text-base, 16px) !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-weight: var(--font-normal, 400) !important;
    color: var(--color-text-primary, #1F2937) !important;
    background: #FFFFFF !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contacts-hero .wpcf7-form input[type="text"]:hover,
.contacts-hero .wpcf7-form input[type="email"]:hover,
.contacts-hero .wpcf7-form input[type="tel"]:hover,
.contacts-hero .wpcf7-form textarea:hover {
    border-color: #C7D2FE !important;
    box-shadow: 0 4px 12px rgba(73, 62, 251, 0.08);
}

.contacts-hero .wpcf7-form input[type="text"]:focus,
.contacts-hero .wpcf7-form input[type="email"]:focus,
.contacts-hero .wpcf7-form input[type="tel"]:focus,
.contacts-hero .wpcf7-form textarea:focus {
    outline: none !important;
    border-color: var(--contact-primary) !important;
    box-shadow: 0 0 0 4px rgba(73, 62, 251, 0.12),
                0 4px 20px rgba(73, 62, 251, 0.15) !important;
    transform: translateY(-1px);
}

.contacts-hero .wpcf7-form input::placeholder,
.contacts-hero .wpcf7-form textarea::placeholder {
    color: #9CA3AF !important;
}

/* Textarea */
.contacts-hero .wpcf7-form textarea {
    min-height: 120px !important;
    resize: vertical;
}

/* ============================================
   CHECKBOX - Premium Custom Design
   ============================================ */
.contacts-hero .wpcf7-acceptance .wpcf7-list-item label {
    padding-left: 32px !important;
}

.contacts-hero .wpcf7-acceptance .wpcf7-list-item label::before {
    width: 22px !important;
    height: 22px !important;
    border: 2px solid var(--contact-primary) !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%) !important;
    transition: all 0.3s ease !important;
}

.contacts-hero .wpcf7-acceptance .wpcf7-list-item label:hover::before {
    border-color: var(--contact-secondary) !important;
    box-shadow: 0 0 0 4px rgba(73, 62, 251, 0.1);
}

.contacts-hero .wpcf7-acceptance .wpcf7-list-item label::after {
    width: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
    background: var(--contact-gradient) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 14px !important;
}

.contacts-hero .wpcf7-acceptance .wpcf7-list-item label._active::before {
    border-color: var(--contact-primary) !important;
}

.contacts-hero .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 14px !important;
    color: #4B5563 !important;
    line-height: 1.6 !important;
}

.contacts-hero .wpcf7-acceptance .wpcf7-list-item-label a {
    color: var(--contact-primary) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease !important;
}

.contacts-hero .wpcf7-acceptance .wpcf7-list-item-label a:hover {
    color: var(--contact-accent) !important;
    border-bottom-color: var(--contact-accent) !important;
}

/* ============================================
   SUBMIT BUTTON - Ultra Hyper Premium
   ============================================ */
.contacts-hero .wpcf7-submit {
    background: var(--contact-gradient) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 24px rgba(73, 62, 251, 0.35),
                0 4px 8px rgba(73, 62, 251, 0.2);
}

/* Shine effect */
.contacts-hero .wpcf7-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.contacts-hero .wpcf7-submit:hover::before {
    left: 100%;
}

.contacts-hero .wpcf7-submit:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 16px 40px rgba(73, 62, 251, 0.4),
                0 8px 16px rgba(73, 62, 251, 0.25),
                var(--contact-glow) !important;
    background: linear-gradient(135deg, #5B4FFD 0%, #8B5CF6 50%, #A855F7 100%) !important;
}

.contacts-hero .wpcf7-submit:active {
    transform: translateY(-1px) scale(0.98) !important;
}

/* Disabled state */
.contacts-hero .wpcf7-submit:disabled,
.contacts-hero .wpcf7-submit[disabled] {
    background: linear-gradient(135deg, #D1D5DB 0%, #9CA3AF 100%) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ============================================
   ERROR STATES
   ============================================ */
.contacts-hero .wpcf7-form input.wpcf7-not-valid,
.contacts-hero .wpcf7-form textarea.wpcf7-not-valid {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.contacts-hero .wpcf7-not-valid-tip {
    font-size: 12px !important;
    color: #EF4444 !important;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.contacts-hero .wpcf7-not-valid-tip::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #FEE2E2;
    color: #EF4444;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */
.contacts-hero .wpcf7-response-output {
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 24px !important;
    margin: 24px 0 0 0 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

.contacts-hero .wpcf7-form.sent .wpcf7-response-output {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%) !important;
    color: #065F46 !important;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   SPINNER
   ============================================ */
.contacts-hero .wpcf7-spinner {
    background-color: var(--contact-primary) !important;
}

/* ============================================
   FLOATING LABEL ANIMATION (optional enhancement)
   ============================================ */
.contacts-hero .form__row {
    position: relative;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.contacts-hero__body {
    position: relative;
    z-index: 1;
}

/* Add subtle floating icons/shapes */
.contacts-hero__body::before {
    content: "";
    position: absolute;
    top: 20px;
    left: -100px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(73, 62, 251, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 16px;
    transform: rotate(15deg);
    animation: floatShape 6s ease-in-out infinite;
}

.contacts-hero__body::after {
    content: "";
    position: absolute;
    bottom: 100px;
    right: -80px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 161, 53, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-radius: 50%;
    animation: floatShape 8s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(20deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .contacts-hero__title {
        font-size: 42px !important;
    }

    .contacts-hero__text .wpcf7 {
        padding: 36px 28px !important;
        border-radius: 20px !important;
    }
}

@media (max-width: 640px) {
    .contacts-hero {
        padding-top: 40px !important;
        padding-bottom: 60px !important;
    }

    .contacts-hero__title {
        font-size: 32px !important;
    }

    .contacts-hero__text > p {
        font-size: 16px !important;
    }

    .contacts-hero__text .wpcf7 {
        padding: 28px 20px !important;
        border-radius: 16px !important;
    }

    .contacts-hero .wpcf7-form input[type="text"],
    .contacts-hero .wpcf7-form input[type="email"],
    .contacts-hero .wpcf7-form input[type="tel"],
    .contacts-hero .wpcf7-form textarea {
        padding: 14px 16px !important;
        border-radius: 10px !important;
    }

    .contacts-hero .wpcf7-submit {
        padding: 16px 24px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
    }

    .contacts-hero__body::before,
    .contacts-hero__body::after {
        display: none;
    }
}

/* ============================================
   DARK MODE SUPPORT (optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Can be enabled if needed */
}
