/* Terms & Conditions Modern Design */
/* Indigo Professional/Legal Theme */

:root {
    --terms-primary: #6366f1;
    --terms-primary-dark: #4f46e5;
    --terms-primary-light: #818cf8;
    --terms-accent: #a5b4fc;
    --terms-dark: #0f172a;
    --terms-text: #334155;
    --terms-text-muted: #64748b;
    --terms-glass: rgba(99, 102, 241, 0.1);
    --terms-glass-border: rgba(99, 102, 241, 0.2);
}

/* Hero Section */
.terms-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    overflow: hidden;
}

.terms-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.terms-hero-bg .gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.terms-hero-bg .orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.15);
    top: -150px;
    right: -100px;
}

.terms-hero-bg .orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(129, 140, 248, 0.1);
    bottom: -100px;
    left: -100px;
}

.terms-hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.terms-hero-content {
    text-align: right;
}

.terms-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: #a5b4fc;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.terms-badge svg {
    width: 20px;
    height: 20px;
}

.terms-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 20px;
}

.terms-hero-title span {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.terms-hero-desc {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.9;
    margin-bottom: 32px;
}

.terms-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.terms-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.terms-chip:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.terms-chip i {
    color: var(--terms-primary-light);
    font-size: 14px;
}

/* Hero Visual */
.terms-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 350px;
}

.terms-icon-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
}

.terms-icon-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-icon-center .main-icon {
    width: 100px;
    height: 100px;
    color: #818cf8;
    filter: drop-shadow(0 0 40px rgba(129, 140, 248, 0.4));
}

.terms-logo-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: termsPulse 4s ease-in-out infinite;
}

@keyframes termsPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
}

.terms-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(129, 140, 248, 0.15);
    animation: termsOrbit 30s linear infinite;
}

.terms-orbit.orbit-2 {
    inset: -40px;
    animation-duration: 40s;
    animation-direction: reverse;
}

.terms-node {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    font-size: 16px;
    backdrop-filter: blur(10px);
}

.terms-node.n1 { top: 0; left: 50%; transform: translateX(-50%); }
.terms-node.n2 { bottom: 0; left: 50%; transform: translateX(-50%); }
.terms-node.n3 { top: 20%; right: -20px; }
.terms-node.n4 { bottom: 20%; left: -20px; }

@keyframes termsOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.terms-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    animation: termsFloat 5s ease-in-out infinite;
}

.terms-floating-card span:not(.card-icon) {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.terms-floating-card .card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--terms-primary), var(--terms-primary-dark));
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
}

.terms-floating-card.card-1 { top: 40px; right: -30px; animation-delay: 0s; }
.terms-floating-card.card-2 { bottom: 60px; left: -20px; animation-delay: -2.5s; }

@keyframes termsFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== Accordion Section ===== */
.terms-accordion-section {
    padding: 100px 0;
    background: #f8fafc;
}

.terms-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.terms-section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--terms-glass);
    color: var(--terms-primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid var(--terms-glass-border);
    margin-bottom: 20px;
}

.terms-section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--terms-dark);
    margin-bottom: 16px;
}

.terms-section-header p {
    font-size: 1.05rem;
    color: var(--terms-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Accordion */
.terms-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terms-accordion-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.terms-accordion-item:hover {
    border-color: var(--terms-primary-light);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.terms-accordion-item.active {
    border-color: var(--terms-primary);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
}

.terms-accordion-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: right;
    font-family: inherit;
}

.terms-accordion-header:hover {
    background: rgba(99, 102, 241, 0.03);
}

.terms-accordion-item.active .terms-accordion-header {
    background: rgba(99, 102, 241, 0.04);
}

.terms-accordion-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terms-glass);
    border: 1px solid var(--terms-glass-border);
    border-radius: 12px;
    color: var(--terms-primary);
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.terms-accordion-item.active .terms-accordion-num {
    background: linear-gradient(135deg, var(--terms-primary), var(--terms-primary-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.terms-accordion-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--terms-dark);
    line-height: 1.6;
    margin: 0;
}

.terms-accordion-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.terms-accordion-icon svg {
    width: 16px;
    height: 16px;
    color: var(--terms-text-muted);
    transition: transform 0.3s ease;
}

.terms-accordion-item.active .terms-accordion-icon {
    background: var(--terms-glass);
}

.terms-accordion-item.active .terms-accordion-icon svg {
    transform: rotate(180deg);
    color: var(--terms-primary);
}

.terms-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.terms-accordion-item.active .terms-accordion-body {
    max-height: 2000px;
}

.terms-accordion-content {
    padding: 0 24px 24px 24px;
    padding-right: 80px;
    color: var(--terms-text);
    font-size: 0.95rem;
    line-height: 2;
}

.terms-accordion-content p {
    margin-bottom: 12px;
}

.terms-accordion-content p:last-child {
    margin-bottom: 0;
}

.terms-accordion-content ul,
.terms-accordion-content ol {
    padding-right: 20px;
    margin-bottom: 12px;
}

.terms-accordion-content li {
    margin-bottom: 8px;
    line-height: 1.9;
}

.terms-accordion-content a {
    color: var(--terms-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.terms-accordion-content a:hover {
    color: var(--terms-primary-dark);
    text-decoration: underline;
}

.terms-accordion-content img {
    border-radius: 12px;
    margin: 16px 0;
    max-width: 100%;
    height: auto;
}

.terms-accordion-content strong {
    color: var(--terms-dark);
}

/* ===== CTA Section ===== */
.terms-cta {
    padding: 80px 0;
    background: #fff;
}

.terms-cta .cta-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 50px;
    background: linear-gradient(135deg, var(--terms-primary), var(--terms-primary-dark));
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.terms-cta .cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.terms-cta .cta-content h2 {
    position: relative;
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.terms-cta .cta-content p {
    position: relative;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.terms-cta .cta-buttons {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.terms-cta .btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: #fff;
    color: var(--terms-primary-dark);
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.terms-cta .btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: var(--terms-primary-dark);
}

.terms-cta .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.terms-cta .btn-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* ===== Consultation Modal ===== */
.consult-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f3f4f6;
    transform: rotate(90deg);
}

.modal-visual {
    background: linear-gradient(135deg, var(--modal-bg-start, #eef2ff) 0%, var(--modal-bg-end, #e0e7ff) 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-avatar {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--terms-primary), var(--terms-primary-dark));
    border-radius: 50%;
    color: #fff;
    font-size: 60px;
    margin-bottom: 30px;
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
}

.modal-avatar svg {
    width: 60px;
    height: 60px;
    stroke: #fff;
    flex-shrink: 0;
}

.modal-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-size: 15px;
    color: var(--terms-dark);
}

.modal-contact i {
    color: var(--terms-primary-dark);
}

.modal-form {
    padding: 50px 40px;
}

.modal-form h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--terms-dark);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-free {
    padding: 6px 14px;
    background: var(--terms-glass);
    color: var(--terms-primary-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
}

.modal-form input[type="text"],
.modal-form input[type="tel"],
.modal-form input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--terms-primary);
}

.time-select {
    margin: 20px 0;
}

.time-select > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--terms-dark);
    margin-bottom: 12px;
}

.time-opts {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.time-opts label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

.time-opts input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--terms-primary);
}

.form-btns {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.btn-cancel {
    flex: 1;
    padding: 16px;
    background: #fff;
    color: var(--terms-dark);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #f9fafb;
}

.btn-submit {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, var(--terms-primary), var(--terms-primary-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .terms-hero .container {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .terms-hero .container {
        grid-template-columns: 1fr;
    }
    .terms-hero-visual {
        display: none;
    }
    .terms-hero-title {
        font-size: 2.2rem;
    }
    .terms-accordion-content {
        padding-right: 24px;
    }
    .modal-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 100px 0 60px;
    }
    .terms-hero-title {
        font-size: 1.8rem;
    }
    .terms-hero-chips {
        justify-content: center;
    }
    .terms-hero-content {
        text-align: center;
    }
    .terms-section-header h2 {
        font-size: 1.75rem;
    }
    .terms-accordion-header {
        padding: 16px 20px;
    }
    .terms-accordion-content {
        padding: 0 20px 20px;
    }
    .terms-cta .cta-card {
        padding: 50px 24px;
    }
    .terms-cta .cta-content h2 {
        font-size: 1.5rem;
    }
    .terms-cta .cta-buttons {
        flex-direction: column;
    }
    .terms-cta .btn-cta-primary,
    .terms-cta .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .terms-hero-title {
        font-size: 1.5rem;
    }
    .terms-hero-desc {
        font-size: 0.95rem;
    }
    .terms-chip {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
    .terms-accordion-num {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
    .terms-accordion-title {
        font-size: 0.9rem;
    }
    .terms-accordion-content {
        font-size: 0.85rem;
        padding-right: 20px;
    }
}

/* Menu spacing */
.main-menu > li {
    margin-left: 12px !important;
}

.main-menu > li > a {
    padding: 15px 16px !important;
}
