/* Services Header */
.services-header {
    padding: 120px max(var(--page-padding), calc((100vw - var(--page-max-width)) / 2));
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.services-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.services-header-container {
    max-width: var(--page-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.services-header-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    margin: 0 0 24px 0;
}

.services-header-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Flow Kerjasama Section */
.section-flow {
    padding: 120px max(var(--page-padding), calc((100vw - var(--page-max-width)) / 2));
    background: white;
    position: relative;
    overflow: hidden;
}

.section-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.container-flow {
    max-width: var(--page-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.flow-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #050505;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.flow-subtitle {
    font-size: 1.1rem;
    color: rgba(5, 5, 5, 0.7);
    text-align: center;
    margin-bottom: 80px;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    position: relative;
}

.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 80px;
    width: 2px;
    height: calc(100% + 40px);
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0.3;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #050505;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #050505;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.step-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(5, 5, 5, 0.7);
    margin: 0;
}

/* CTA Appointment Section */
.section-cta-appointment {
    padding: 0;
    margin: 0;
    width: 100%;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.cta-card {
    width: 100%;
    height: 500px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    margin: 0;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cta-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.8) 0%, rgba(5, 5, 5, 0.6) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.cta-button {
    padding: 18px 48px;
    background: var(--primary);
    color: #050505;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #c4e600;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 255, 0, 0.4);
}

.cta-button i {
    font-size: 1.3rem;
}

/* Appointment Modal */
.appointment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.appointment-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 16px;
    padding: 48px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.appointment-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(5, 5, 5, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #050505;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(5, 5, 5, 0.2);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #050505;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.modal-subtitle {
    font-size: 1rem;
    color: rgba(5, 5, 5, 0.7);
    margin-bottom: 32px;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.appointment-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.appointment-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #050505;
}

.appointment-form input {
    padding: 14px 16px;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    color: #050505;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.appointment-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.1);
}

.appointment-form input::placeholder {
    color: rgba(5, 5, 5, 0.4);
}

.appointment-form .form-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--primary);
    color: #050505;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.appointment-form .form-submit-btn:hover {
    background: #c4e600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 255, 0, 0.3);
}

.appointment-form .form-submit-btn i {
    font-size: 1.2rem;
}

/* Responsive Services */
@media (max-width: 1024px) {
    .services-header-title {
        font-size: 2.5rem;
    }
    
    .services-header-description {
        font-size: 1rem;
    }
    
    .flow-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .services-header {
        padding: 80px var(--page-padding);
    }
    
    .services-header-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .services-header-description {
        font-size: 0.95rem;
    }
    
    .section-flow {
        padding: 80px var(--page-padding);
    }
    
    .flow-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }
    
    .flow-subtitle {
        font-size: 1rem;
        margin-bottom: 60px;
    }
    
    .flow-steps {
        gap: 32px;
    }
    
    .flow-step {
        gap: 24px;
    }
    
    .flow-step:not(:last-child)::after {
        left: 24px;
        top: 70px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .step-description {
        font-size: 0.95rem;
    }
    
    .section-cta-appointment {
        padding: 0;
    }
    
    .cta-card {
        height: 400px;
    }
    
    .cta-content {
        padding: 40px 24px;
    }
    
    .cta-title {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    
    .cta-button {
        padding: 16px 40px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 32px 24px;
    }
    
    .modal-title {
        font-size: 1.75rem;
    }
    
    .modal-subtitle {
        font-size: 0.95rem;
    }
}
