/* ═══════════════════════════════════════════
   Voxnik Service Cards – style.css
   ═══════════════════════════════════════════ */

/* Grid */
.vsc-grid {
    display: grid;
    gap: 24px;
    width: 100%;
    padding: 0;
    margin: 0;
}
.vsc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vsc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vsc-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Card wrapper (perspective) ── */
.vsc-card-wrap {
    perspective: 1200px;
    position: relative;
}

/* ── Card ── */
.vsc-card {
    position: relative;
    width: 100%;
    min-height: 480px;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.vsc-card.is-flipped {
    transform: rotateY(180deg);
}

/* ── Shared face ── */
.vsc-front,
.vsc-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

/* ══ FRONT ══════════════════════════════════ */
.vsc-front {
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Top image */
.vsc-front-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}
.vsc-front-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.vsc-card-wrap:hover .vsc-front-img img {
    transform: scale(1.04);
}

/* Body */
.vsc-front-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

/* Icon */
.vsc-icon-wrap {
    width: 46px;
    height: 46px;
    background: #f0f4ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3ee8;
    font-size: 20px;
}
.vsc-icon-wrap svg,
.vsc-icon-wrap i {
    width: 22px !important;
    height: 22px !important;
    font-size: 20px;
}

/* Title */
.vsc-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

/* Desc */
.vsc-desc {
    font-size: 13.5px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

/* Badge */
.vsc-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #0080ff;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 5;
    text-transform: uppercase;
}

/* ══ BACK ════════════════════════════════════ */
.vsc-back {
    background: #0d1b4b;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    gap: 16px;
    color: #fff;
}

.vsc-back-header {
    text-align: center;
}
.vsc-back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 20px;
}
.vsc-back-icon svg,
.vsc-back-icon i { font-size: 22px; color: #fff; }

.vsc-back-header h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #fff;
}
.vsc-back-header p {
    font-size: 12.5px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Form */
.vsc-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vsc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.vsc-form input,
.vsc-form textarea {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.vsc-form input::placeholder,
.vsc-form textarea::placeholder { color: rgba(255,255,255,0.45); }
.vsc-form input:focus,
.vsc-form textarea:focus { border-color: #4d7eff; }
.vsc-form textarea { resize: none; }

/* Buttons */
.vsc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.22s;
    text-decoration: none;
    font-family: inherit;
}

/* Front Learn More */
.vsc-flip-btn {
    background: #1a3ee8;
    color: #fff;
    width: 100%;
    margin-top: auto;
}
.vsc-flip-btn:hover { background: #1430c0; transform: translateY(-1px); }

/* Back Submit */
.vsc-submit-btn {
    background: #1a3ee8;
    color: #fff;
    flex: 1;
}
.vsc-submit-btn:hover { background: #1430c0; }

/* WhatsApp */
.vsc-wa-btn {
    background: #25d366;
    color: #fff;
    flex: 1;
}
.vsc-wa-btn:hover { background: #1da851; }

/* Back button */
.vsc-outline-btn {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
    flex: 0 0 auto;
    padding: 10px 14px;
}
.vsc-outline-btn:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.vsc-form-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Message */
.vsc-msg {
    font-size: 13px;
    min-height: 18px;
    text-align: center;
    font-weight: 500;
}
.vsc-msg.success { color: #5eff9e; }
.vsc-msg.error   { color: #ff7070; }

/* Loading spinner on submit */
.vsc-submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .vsc-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .vsc-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .vsc-cols-2,
    .vsc-cols-3,
    .vsc-cols-4 { grid-template-columns: 1fr; }
    .vsc-card   { min-height: 440px; }
    .vsc-row    { grid-template-columns: 1fr; }
}
