/**
 * Refactored Public CSS for Jumixa Control Center Shortcodes
 */

:root {
    --jumixa-dark: #030712;
    --jumixa-navy: #080f24;
    --jumixa-blue: #0052FF;
    --jumixa-cyan: #00E5FF;
    --jumixa-gray: #64748b;
    --jumixa-light-gray: #f8fafc;
    --jumixa-glass: rgba(8, 15, 36, 0.75);
    --jumixa-border: rgba(255, 255, 255, 0.06);
    --jumixa-glow: rgba(0, 229, 255, 0.15);
}

.jumixa-frontend-section-wrapper {
    margin: 40px 0;
    font-family: 'Outfit', sans-serif;
    color: #e2e8f0;
}

.glassmorphism {
    background: var(--jumixa-glass);
    border: 1px solid var(--jumixa-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* 1. CONTACT SPLIT LAYOUT */
.jumixa-frontend-contact-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
    margin: 40px 0;
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
}

@media screen and (max-width: 868px) {
    .jumixa-frontend-contact-split-layout {
        grid-template-columns: 1fr;
    }
}

.jumixa-frontend-contact-split-layout * {
    box-sizing: border-box;
}

.contact-info-block {
    border-radius: 16px;
    padding: 40px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.contact-info-block h3 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.contact-info-block p {
    font-size: 14px;
    color: var(--jumixa-gray);
    line-height: 1.5;
    margin: 0 0 30px 0 !important;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-detail-item .icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(0, 82, 255, 0.1);
    border: 1.5px solid var(--jumixa-blue);
    color: var(--jumixa-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
    flex-shrink: 0;
}

.contact-detail-item .text label {
    display: block;
    font-size: 11px;
    color: var(--jumixa-gray);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-detail-item .text a,
.contact-detail-item .text span {
    color: #e2e8f0;
    font-size: 14.5px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-detail-item .text a:hover {
    color: var(--jumixa-cyan);
}

.contact-map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--jumixa-border);
    margin-top: auto;
    background: #02050b;
    height: 220px;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: invert(0.92) hue-rotate(200deg) contrast(1.1); /* Match dark mode map! */
}

/* 2. FORM LAYOUT */
.jumixa-frontend-form-wrapper {
    border-radius: 16px;
    padding: 40px;
}

.jumixa-frontend-form-wrapper .form-row.split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media screen and (max-width: 576px) {
    .jumixa-frontend-form-wrapper .form-row.split {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.jumixa-frontend-form-wrapper .form-group {
    margin-bottom: 20px;
}

.jumixa-frontend-form-wrapper .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}

.jumixa-frontend-form-wrapper input[type="text"],
.jumixa-frontend-form-wrapper input[type="email"],
.jumixa-frontend-form-wrapper select,
.jumixa-frontend-form-wrapper textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--jumixa-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.jumixa-frontend-form-wrapper input:focus,
.jumixa-frontend-form-wrapper select:focus,
.jumixa-frontend-form-wrapper textarea:focus {
    border-color: var(--jumixa-cyan);
    background: rgba(0, 229, 255, 0.01);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.jumixa-frontend-form-wrapper select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.jumixa-frontend-form-wrapper select option {
    background: var(--jumixa-dark);
    color: #ffffff;
}

/* File upload styling */
.file-upload-styled {
    position: relative;
    border: 1.5px dashed var(--jumixa-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.01);
}

.file-upload-styled:hover {
    border-color: var(--jumixa-cyan);
    background: rgba(0, 229, 255, 0.01);
}

.file-upload-styled input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    color: var(--jumixa-gray);
    font-size: 13px;
}

.file-upload-label i {
    font-size: 20px;
    color: var(--jumixa-cyan);
    display: block;
    margin-bottom: 6px;
}

.jumixa-frontend-form-wrapper .form-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 16px;
}

.form-feedback-error {
    font-size: 13px;
    color: #ef4444;
    font-weight: 500;
}

.jumixa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--jumixa-blue) 0%, var(--jumixa-cyan) 100%);
    color: #ffffff;
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--jumixa-border);
    color: var(--jumixa-gray);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* 3. SERVICES GRID */
.jumixa-frontend-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.frontend-service-card {
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.frontend-service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(0, 229, 255, 0.05);
}

.card-glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: radial-gradient(circle at top, rgba(0, 229, 255, 0.08) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(0, 229, 255, 0.06);
    border: 1.5px solid var(--jumixa-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jumixa-cyan);
    font-size: 18px;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.service-card-cover {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--jumixa-border);
}

.service-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frontend-service-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.frontend-service-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.service-features-list {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 16px 0 0 0;
    border-top: 1px solid var(--jumixa-border);
}

.service-features-list li {
    font-size: 13px;
    color: #e2e8f0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features-list li i {
    color: #10b981;
    font-size: 12px;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--jumixa-border);
}

.service-card-footer .price-range {
    color: var(--jumixa-cyan);
    font-size: 14px;
    font-weight: 700;
}

.btn-service-request {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-service-request:hover {
    color: var(--jumixa-cyan);
}

.btn-service-request:hover i {
    transform: translateX(4px);
}

/* 4. COUNTER CARDS */
.jumixa-frontend-stats-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.stats-counter-card {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.stats-counter-card .counter {
    display: block;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--jumixa-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.stats-counter-card .label {
    font-size: 11px;
    font-weight: 600;
    color: var(--jumixa-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 5. HERO BANNER */
.jumixa-frontend-hero-banner {
    position: relative;
    background-color: var(--jumixa-dark);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    padding: 100px 30px;
    border: 1px solid var(--jumixa-border);
    margin: 40px 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
}

.radial-glow-back {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.08) 0%, rgba(0, 229, 255, 0.01) 60%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-inner-container {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero-chip-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--jumixa-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-chip-pill .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--jumixa-cyan);
    box-shadow: 0 0 10px var(--jumixa-cyan);
}

.jumixa-frontend-hero-banner h1 {
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 20px 0 !important;
    letter-spacing: -1px;
}

.jumixa-frontend-hero-banner p {
    font-size: 15.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 32px 0 !important;
}

.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 14px;
}

/* 6. ABOUT SECTION */
.jumixa-frontend-about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    margin: 50px 0;
}

@media screen and (max-width: 768px) {
    .jumixa-frontend-about-layout {
        grid-template-columns: 1fr;
    }
}

.about-visual-side {
    position: relative;
}

.about-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-wrapper.placeholder-wrapper {
    background: rgba(0,0,0,0.1);
    border: 1.5px dashed var(--jumixa-border);
    color: rgba(255,255,255,0.04);
    font-size: 40px;
}

.about-text-side {
    display: flex;
    flex-direction: column;
}

.section-tag-label {
    color: var(--jumixa-cyan);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.about-text-side h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.accent-bar-left {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--jumixa-blue), var(--jumixa-cyan));
    margin-bottom: 24px;
    border-radius: 10px;
}

.about-narrative {
    font-size: 14.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* 7. AJAX SUCCESS POPUP */
.jumixa-frontend-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.jumixa-frontend-modal.active {
    display: flex;
}

.jumixa-frontend-modal .frontend-modal-content {
    background: #060a17;
    border: 1px solid var(--jumixa-border);
    max-width: 440px;
    width: 100%;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.8);
    animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlide {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.jumixa-frontend-modal .frontend-modal-content h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.jumixa-frontend-modal .frontend-modal-content p {
    color: var(--jumixa-gray);
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.success-icon-animation {
    margin: 0 auto 20px;
    width: 50px;
    height: 50px;
}

.checkmark-circle {
    width: 50px;
    height: 50px;
    position: relative;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark-circle .background {
    position: absolute;
    width: 46px;
    height: 46px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 50%;
    transform: scale(0);
    animation: successBgGrow 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.checkmark {
    width: 24px;
    height: 12px;
    border-left: 3px solid #10b981;
    border-bottom: 3px solid #10b981;
    transform: rotate(-45deg) translate(2px, -3px);
    transform-origin: left bottom;
    opacity: 0;
}

.checkmark.draw {
    animation: drawCheckmark 0.3s ease 0.4s forwards;
}

@keyframes successBgGrow { to { transform: scale(1); } }
@keyframes drawCheckmark {
    from { opacity: 0; width: 0; height: 0; }
    to { opacity: 1; width: 24px; height: 12px; }
}
