/* Unified SMSALES Styles - Optimized Single File */
:root {
    --primary: #d41d21;
    --primary-dark: #d41c20;
    --secondary: #bc373b;
    --accent: #00D4AA;
    --dark: #1A1D29;
    --dark-light: #2D3142;
    --light: #FFFFFF;
    --gray: #F5F7FA;
    --text: #4A4A68;
    --text-light: #8C8CA1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

/* ==================== COMMON COMPONENTS ==================== */

/* Navigation */
.navbar {
    background-color: var(--light);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 18px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 8px;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 12px;
    color: var(--dark);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 29, 33, 0.2);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 26px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

/* Common Sections */
.section-title {
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--gray) !important;
}

/* Hero Sections - Used on main page */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTIwMCA4MDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxwYXRoIGZpbGw9IiNkNDFjMjAiIGZpbGwtb3BhY2l0eT0iMC4xIiBkPSJNMCw0MDBMMTQwLDM1MEwyODAsNDUwTDQyMCwzNTBMNTYwLDQ1MEw3MDAsMzUwTDg0MCw0NTBMMTAwMCwzNTBMMTE2MCw0NTBMMTIwMCw0MDBMMTIwMCw4MDBMMCw4MDBaIj48L3BhdGg+PC9zdmc+');
    background-size: cover;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* Feature Cards - Main page version */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.feature-icon i {
    font-size: 28px;
}

.feature-card h4 {
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-light);
}

/* Client Logos Section */
.clients-section {
    padding: 60px 0;
    background-color: white;
}

.clients-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
    font-weight: 500;
}

.clients-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.clients-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.client-logo {
    flex: 0 0 auto;
    width: 180px;
    margin: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.clients-container:before,
.clients-container:after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.clients-container:before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.clients-container:after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Pricing Section */
.pricing-section {
    position: relative;
    overflow: hidden;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    position: relative;
}

.pricing-header h4 {
    color: white;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    margin: 20px 0;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.pricing-savings {
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    position: absolute;
    top: 15px;
    right: 15px;
}

.pricing-features {
    padding: 30px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--accent);
    margin-right: 12px;
    font-size: 1.1rem;
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-cta {
    text-align: center;
    margin-top: 20px;
}

.pricing-note {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* How It Works Steps */
.how-it-works-step {
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
}

.step-line {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 1;
}

.how-it-works-step:last-child .step-line {
    display: none;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin: 15px 0;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
}

.testimonial-text:before {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.client-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.client-company {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* API Section - Main page version */
.api-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: white;
}

.api-section h2, .api-section h3, .api-section h4 {
    color: white;
}

.api-section p {
    color: rgba(255, 255, 255, 0.8);
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--accent);
}

.code-block pre {
    color: #E0E0E0;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 20px;
}

.footer h5 {
    color: white;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: white;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 12px;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: 60px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTIwMCA4MDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxwYXRoIGZpbGw9IiNiYzM3M2IiIGZpbGwtb3BhY2l0eT0iMC4xNSIgZD0iTTAsNDAwTDE0MCwzNTBMMjgwLDQ1MEw0MjAsMzUwTDU2MCw0NTBMNzAwLDM1MEw4NDAsNDUwTDEwMDAsMzUwTDExNjAsNDUwTDEyMDAsNDAwTDEyMDAsODAwTDAsODAwWiI+PC9wYXRoPjwvc3ZnPg==');
    background-size: cover;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* ==================== API DOCS PAGE SPECIFIC ==================== */

/* Hero for API Docs page - Different from main page */
.page-api-docs .hero-section {
    padding: 160px 0 80px;
    text-align: center;
}

.page-api-docs .hero-section h1 {
    margin-bottom: 16px;
}

.page-api-docs .hero-section p {
    margin-left: auto;
    margin-right: auto;
}

/* Daraja-Style Documentation */
.docs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* In-page Navigation - API Docs specific */
.docs-nav {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 100px;
    z-index: 100;
}

.docs-nav-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.docs-nav-title i {
    margin-right: 10px;
    color: var(--accent);
}

.docs-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--gray);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-pill:hover, .nav-pill.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 29, 33, 0.2);
}

.nav-pill i {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* API Content Styles - Docs page specific */
.docs-api-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.docs-api-section:last-child {
    border-bottom: none;
}

.api-endpoint {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.endpoint-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.endpoint-method {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 15px;
}

.method-get {
    background-color: #e7f4e4;
    color: #2e7d32;
}

.method-post {
    background-color: #e3f2fd;
    color: #1565c0;
}

.endpoint-url {
    font-family: 'Courier New', monospace;
    background-color: var(--gray);
    padding: 10px 15px;
    border-radius: 6px;
    margin: 15px 0;
    display: block;
    font-size: 0.95rem;
    border-left: 4px solid var(--primary);
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.param-table th {
    background-color: var(--gray);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.param-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.param-table tr:last-child td {
    border-bottom: none;
}

.param-required {
    color: #d32f2f;
    font-weight: 600;
    font-size: 0.85rem;
}

.param-optional {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Code block for API docs - different from main page */
.docs-code-block {
    background: #282c34;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.docs-code-block pre {
    color: #abb2bf;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.response-block {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.response-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.language-tabs {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.language-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.language-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.success-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Feature card for API docs - different from main page */
.docs-feature-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.docs-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.docs-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-size: 1.5rem;
}

/* SDK Cards */
.sdk-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}

.sdk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.sdk-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.sdk-icon.js {
    background: linear-gradient(135deg, #F7DF1E 0%, #D1B517 100%);
    color: #323330;
}

.sdk-icon.python {
    background: linear-gradient(135deg, #3776AB 0%, #2D5B8A 100%);
    color: white;
}

.sdk-icon.php {
    background: linear-gradient(135deg, #777BB4 0%, #5D619B 100%);
    color: white;
}

.sdk-icon.java {
    background: linear-gradient(135deg, #007396 0%, #005A7A 100%);
    color: white;
}

.sdk-icon.ruby {
    background: linear-gradient(135deg, #CC342D 0%, #A32924 100%);
    color: white;
}

.sdk-icon.csharp {
    background: linear-gradient(135deg, #239120 0%, #1A7518 100%);
    color: white;
}

.sdk-icon.go {
    background: linear-gradient(135deg, #00ADD8 0%, #008DB5 100%);
    color: white;
}

.sdk-code {
    background: var(--gray);
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 15px 0;
    overflow-x: auto;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: var(--gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.quick-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 29, 33, 0.2);
}

.quick-link i {
    margin-right: 10px;
}

/* ==================== CONTACT PAGE SPECIFIC ==================== */

.contact-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.contact-hero:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTIwMCA4MDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxwYXRoIGZpbGw9IiNkNDFjMjAiIGZpbGwtb3BhY2l0eT0iMC4xIiBkPSJNMCw0MDBMMTQwLDM1MEwyODAsNDUwTDQyMCwzNTBMNTYwLDQ1MEw3MDAsMzUwTDg0MCw0NTBMMTAwMCwzNTBMMTE2MCw0NTBMMTIwMCw0MDBMMTIwMCw4MDBMMCw4MDBaIj48L3BhdGg+PC9zdmc+');
    background-size: cover;
    opacity: 0.2;
}

.contact-form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 50px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-header h2 {
    margin-bottom: 12px;
    color: var(--dark);
}

.form-header p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-control, .form-select {
    padding: 14px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 29, 33, 0.1);
}

.form-control-lg {
    padding: 16px;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.contact-info-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.contact-info-icon i {
    font-size: 24px;
}

.contact-info-card h4 {
    margin-bottom: 12px;
    color: var(--dark);
}

.contact-info-card p {
    color: var(--text-light);
    margin-bottom: 8px;
}

.contact-info-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-details-section {
    padding-top: 60px;
}

/* Map Section */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-direction: column;
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* FAQ Section */
.faq-section {
    background-color: var(--gray);
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-item h5 {
    margin-bottom: 10px;
    color: var(--dark);
}

.faq-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */

@media (max-width: 991.98px) {
    .hero-section h1,
    .contact-hero h1 {
        font-size: 2.8rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }

    .step-line {
        display: none;
    }

    .clients-track {
        animation-duration: 40s;
    }

    .docs-nav-links {
        justify-content: center;
    }

    .docs-nav {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 30px;
        margin-top: -30px;
    }
}

@media (max-width: 767.98px) {
    .hero-section,
    .contact-hero {
        padding: 120px 0 80px;
        text-align: center;
    }

    .hero-section h1,
    .contact-hero h1 {
        font-size: 2.3rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .section-padding {
        padding: 80px 0;
    }

    .client-logo {
        width: 140px;
        margin: 0 20px;
    }

    .clients-track {
        animation-duration: 50s;
    }

    .docs-nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-pill {
        width: 100%;
        justify-content: center;
    }

    .contact-hero {
        padding: 120px 0 60px;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-form-container {
        padding: 25px;
    }

    .page-api-docs .hero-section {
        padding: 140px 0 60px;
    }
}
