/* ─── TECHNOLOGY SERVICES PAGE (Elite Dark Theme) ─── */

:root {
    --sv-bg: #0d0d0d;
    --sv-gold: #b8943f;
    --sv-gold-dim: rgba(184, 148, 63, 0.3);
    --sv-border: rgba(255, 255, 255, 0.05);
    --sv-text: #f0f0f5;
    --sv-text-muted: #8888a0;
    --sv-card-bg: rgba(255, 255, 255, 0.02);
    --sv-accent-green: #4CAF50;
}

.cfo-services-page {
    background: var(--sv-bg);
    color: var(--sv-text);
    overflow-x: hidden;
}

/* ─── HERO SECTION ─── */
.sv-hero {
    padding: 2rem 0 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Moving Mesh Gradient */
.sv-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(184, 148, 63, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(77, 204, 204, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #0d0d0d 40%, transparent 100%);
    animation: sv-mesh-rotate 30s infinite linear alternate;
    z-index: 1;
}

@keyframes sv-mesh-rotate {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(10deg) scale(1.1); }
}

.sv-hero .pc-container {
    position: relative;
    z-index: 2;
}

.sv-hero-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--sv-gold);
    border: 1px solid var(--sv-gold-dim);
    display: inline-block;
    padding: 0.5rem 2rem;
    margin-bottom: 3.5rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
}

.sv-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 3rem;
    letter-spacing: -3px;
}

.sv-hero h1 em {
    font-style: italic;
    color: var(--sv-gold);
    font-weight: 500;
}

.sv-hero-desc {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--sv-text-muted);
    max-width: 850px;
    margin: 0 auto;
    font-weight: 300;
}

/* ─── STATS STRIP ─── */
.sv-stats-strip {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--sv-border);
    border-bottom: 1px solid var(--sv-border);
    padding: 3rem 0;
    backdrop-filter: blur(10px);
}

.sv-stats-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sv-stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #fff;
}

.sv-stat-icon {
    width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(184, 148, 63, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
        transition: all 0.4s ease;
    }
    
    .sv-stat-item:hover .sv-stat-icon {
        border-color: var(--sv-gold);
        background: rgba(184, 148, 63, 0.1);
        box-shadow: 0 0 15px rgba(184, 148, 63, 0.2);
        transform: translateY(-2px);
    }
    
    .sv-stat-text {
        font-size: 1.1rem;
        font-weight: 800;
        line-height: 1.2;
}

.sv-stat-text span {
    display: block;
    color: var(--sv-text-muted);
    font-weight: 700;
        font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
        margin-top: 0.25rem;
}

/* ─── INTAKE SECTION ─── */
.sv-intake-section {
    background: var(--sv-bg);
    padding: 4rem 0;
    position: relative;
}

.sv-intake-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 6rem;
    align-items: start;
}

.sv-intake-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    margin-bottom: 2rem;
    font-weight: 800;
    color: #fff;
}

.sv-intake-header p {
    font-size: 1.15rem;
    color: var(--sv-text-muted);
    line-height: 1.7;
    max-width: 650px;
    margin-bottom: 5rem;
}

/* ─── STEPPER NAV ─── */
.sv-stepper {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6rem;
    padding: 0 2rem;
}

/* Background Track */
.sv-stepper::before {
    content: '';
    position: absolute;
    top: 14px; /* Center of 28px circle */
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: var(--sv-border);
    z-index: 1;
}

/* Active Progress Line */
.sv-stepper-progress {
    position: absolute;
    top: 14px;
    left: 2rem;
    height: 1px;
    background: var(--sv-gold);
    box-shadow: 0 0 10px var(--sv-gold);
    z-index: 2;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%; /* Default to 0, active step 1 will be handled */
}

.sv-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sv-text-muted);
    position: relative;
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s;
}

.sv-step.active {
    color: var(--sv-gold);
}

.sv-step-num {
    width: 28px;
    height: 28px;
    background: var(--sv-bg);
    border: 1px solid var(--sv-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 10px var(--sv-bg);
}

.sv-step.active .sv-step-num {
    background: var(--sv-gold);
    border-color: var(--sv-gold);
    color: #000;
    box-shadow: 0 0 0 6px rgba(184, 148, 63, 0.1), 0 0 20px rgba(184, 148, 63, 0.3);
}

.sv-step:hover:not(.active) .sv-step-num {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ─── SERVICES GRID ─── */
.sv-selection-area h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.sv-selection-area .sv-subtitle {
    font-size: 1rem;
    color: var(--sv-text-muted);
    margin-bottom: 4rem;
    display: block;
}

.sv-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.sv-card {
    background: var(--sv-card-bg);
    border: 1px solid var(--sv-border);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

/* Holographic Shine */
.sv-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 45%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 55%,
        transparent 100%
    );
    transition: all 0.8s ease;
    transform: rotate(45deg);
    pointer-events: none;
}

.sv-card:hover {
    transform: translateY(-8px);
    border-color: var(--sv-gold-dim);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.sv-card:hover::after {
    top: -50%;
    left: -50%;
}

.sv-card.selected {
    border-color: var(--sv-gold);
    background: rgba(184, 148, 63, 0.05);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.5),
        inset 0 0 20px rgba(184, 148, 63, 0.1);
}

.sv-card-icon-box {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
}

.sv-card:hover .sv-card-icon-box {
    border-color: var(--sv-gold-dim);
    background: rgba(184, 148, 63, 0.1);
    transform: scale(1.1);
}

.sv-card.selected .sv-card-icon-box {
    background: var(--sv-gold);
    color: #000;
    border-color: var(--sv-gold);
    transform: scale(1.1) rotate(5deg);
}


.sv-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
}

.sv-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--sv-text-muted);
    margin: 0;
}

.sv-card-check {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 24px;
    height: 24px;
    border: 2px solid var(--sv-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sv-card.selected .sv-card-check {
    background: var(--sv-gold);
    border-color: var(--sv-gold);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(184, 148, 63, 0.4);
}

.sv-card-check span {
    width: 6px;
    height: 10px;
    border: solid transparent;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-1px);
    transition: all 0.3s;
}

.sv-card.selected .sv-card-check span {
    border-color: #000;
}

/* ─── SIDEBAR ─── */
.sv-sidebar-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--sv-border);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
}

.sv-sidebar-card h4 {
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--sv-border);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

/* ─── HORIZONTAL CHIPS ─── */
.sv-chips-wrapper {
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed rgba(184, 148, 63, 0.2);
    display: none; /* Hidden by default, shown via JS */
}

.sv-chips-wrapper.active {
    display: block;
    animation: sv-fade-in 0.4s ease;
}

.sv-chips-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sv-gold);
    margin-bottom: 1.5rem;
    display: block;
}

.sv-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 44px;
}

.sv-chip {
    background: rgba(184, 148, 63, 0.1);
    border: 1px solid var(--sv-gold-dim);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: sv-chip-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
}

.sv-chip:hover {
    background: rgba(184, 148, 63, 0.2);
    border-color: var(--sv-gold);
}

.sv-chip-remove {
    cursor: pointer;
    font-size: 1rem;
    color: var(--sv-text-muted);
    transition: color 0.2s;
    line-height: 1;
}

.sv-chip-remove:hover {
    color: var(--sv-gold);
}

@keyframes sv-chip-in {
    from { opacity: 0; transform: translateY(10px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sv-why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sv-why-list li {
    font-size: 0.95rem;
    color: var(--sv-text-muted);
    line-height: 1.6;
    padding-left: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

.sv-why-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 15px;
    height: 1px;
    background: var(--sv-gold);
}

.sv-contact-card {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 1px solid var(--sv-border);
    color: #fff;
    border-radius: 20px;
    padding: 3rem;
}

.sv-contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

.sv-contact-card p {
    font-size: 0.9rem;
    color: var(--sv-text-muted);
    margin-bottom: 1.5rem;
}

.sv-contact-card a {
    color: var(--sv-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.sv-contact-card a:hover {
    border-color: var(--sv-gold);
}

.sv-contact-info {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.7;
}

.sv-next-bar {
    margin-top: 5rem;
    display: flex;
    justify-content: flex-end;
}

.btn-sv-gold {
    background: linear-gradient(135deg, #b8943f 0%, #8c6d2d 100%);
    color: #000;
    padding: 1.25rem 3.5rem;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(184, 148, 63, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-sv-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: none;
}

.btn-sv-gold:hover::after {
    left: 150%;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-sv-gold:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(184, 148, 63, 0.4);
    filter: brightness(1.1);
}

.btn-sv-gold:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-sv-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--sv-text-muted);
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid var(--sv-border);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.btn-sv-outline:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

/* ─── FORM ELMENTS ─── */
.sv-form-step {
    display: none;
}

.sv-form-step.active {
    display: block;
    animation: sv-fade-in 0.5s ease;
}

.sv-form-group {
    margin-bottom: 2.5rem;
}

.sv-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.sv-label span {
    color: var(--sv-gold);
    margin-left: 0.25rem;
}

.sv-select, .sv-input, .sv-textarea {
    width: 100%;
    background: #0d0d0d !important;
    border: 1px solid var(--sv-border);
    border-radius: 12px;
    padding: 0 1.5rem;
    height: 60px;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* ─── PHONE PREFIX STYLING ─── */
.sv-phone-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #0d0d0d;
    border: 1px solid var(--sv-border);
    border-radius: 12px;
    height: 60px; /* Match standard input height */
    transition: all 0.3s;
}

.sv-phone-wrapper:has(.sv-phone-input:focus) {
    border-color: var(--sv-gold);
    box-shadow: 0 0 15px rgba(184, 148, 63, 0.2);
}

.sv-phone-code {
    position: static; /* Remove absolute */
    margin-left: 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sv-gold);
    pointer-events: none;
    background: rgba(184, 148, 63, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(184, 148, 63, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    white-space: nowrap;
}

.sv-phone-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding-left: 1rem !important;
    height: 100% !important;
}
/* Force dark mode for autocomplete/autofill */
.sv-input:-webkit-autofill,
.sv-input:-webkit-autofill:hover, 
.sv-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0px 1000px #0d0d0d inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.sv-textarea {
    padding: 1.25rem 1.5rem;
    height: auto;
    min-height: 150px;
    resize: vertical;
}

.sv-input-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--sv-text-muted);
    font-style: italic;
    margin-top: 0.75rem;
    line-height: 1.4;
}

/* ─── CHECKBOX STYLES ─── */
.sv-newsletter-row {
    margin-top: 2rem;
}

.sv-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--sv-text-muted);
    line-height: 1.6;
    user-select: none;
}

.sv-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.sv-checkmark {
    min-width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--sv-border);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s;
    margin-top: 2px;
}

.sv-checkbox-container:hover input ~ .sv-checkmark {
    border-color: rgba(255, 255, 255, 0.3);
}

.sv-checkbox-container input:checked ~ .sv-checkmark {
    background: var(--sv-gold);
    border-color: var(--sv-gold);
}

.sv-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sv-checkbox-container input:checked ~ .sv-checkmark:after {
    display: block;
}

.sv-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238888a0' 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 1.5rem center;
    background-size: 1rem;
    cursor: pointer;
}

.sv-select:focus, .sv-input:focus, .sv-textarea:focus {
    border-color: var(--sv-gold-dim);
    background: #161616;
    box-shadow: 0 0 15px rgba(184, 148, 63, 0.1);
}

.sv-select option {
    background: #0d0d0d;
    color: #fff;
}

/* ─── VALIDATION ─── */
.sv-error {
    border-color: rgba(255, 87, 87, 0.4) !important;
    background: rgba(255, 87, 87, 0.02) !important;
    box-shadow: 0 0 15px rgba(255, 87, 87, 0.1) !important;
}

.sv-error:focus {
    border-color: rgba(255, 87, 87, 0.8) !important;
    box-shadow: 0 0 20px rgba(255, 87, 87, 0.2) !important;
}

.sv-shake {
    color: #ff5757 !important;
    animation: sv-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.sv-error-msg {
    background: rgba(255, 87, 87, 0.1);
    border: 1px solid rgba(255, 87, 87, 0.3);
    color: #ff8a8a;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 0.75rem;
    animation: sv-fade-in 0.3s ease;
}

.sv-error-msg.active {
    display: flex;
}

.sv-field-error {
    color: #ff8a8a;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
    display: none;
}

.sv-field-error.active {
    display: block;
}

@keyframes sv-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}


.sv-buttons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--sv-border);
}

@keyframes sv-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
    .sv-intake-grid { gap: 3rem; }
}

@media (max-width: 1024px) {
    .sv-hero h1 { font-size: 4rem; }
    .sv-intake-grid { grid-template-columns: 1fr; }
    .sv-sidebar { order: -1; }
    .sv-intake-header h2 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .sv-hero { padding: 8rem 0; }
    .sv-hero h1 { font-size: 3rem; letter-spacing: -1px; }
    .sv-hero-desc { font-size: 1.1rem; }
    .sv-stats-inner { flex-direction: column; gap: 2.5rem; align-items: flex-start; }
    .sv-cards-grid { grid-template-columns: 1fr; }
    .sv-stepper { gap: 1.5rem; overflow-x: auto; padding-bottom: 1.5rem; }
    .sv-step { white-space: nowrap; }
    .sv-intake-header h2 { font-size: 2.2rem; }
}
