/* Payment Terms and Conditions Stylesheet */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

.header .subtitle {
    font-size: 1.4em;
    opacity: 0.9;
    font-weight: 400;
}

.content {
    padding: 40px;
}

.toc {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 0 5px 5px 0;
}

.toc h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

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

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

.toc > ul > li > a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toc > ul > li > a:hover,
.toc > ul > li > a.active {
    background-color: #3498db;
    color: white;
}

.toc ul ul {
    margin-top: 8px;
    margin-left: 20px;
}

.toc ul ul li {
    margin-bottom: 5px;
}

.toc ul ul a {
    color: #555;
    font-size: 0.9em;
    font-weight: normal;
}

.section {
    margin-bottom: 40px;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background-color: #fdfdfd;
}

.section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.section h3 {
    color: #34495e;
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.section p {
    margin-bottom: 15px;
    text-align: justify;
    color: #555;
}

.section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.section ul li {
    margin-bottom: 8px;
    color: #555;
}

.highlight {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.highlight strong {
    color: #856404;
}

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

.fee-table thead {
    background-color: #3498db;
    color: white;
}

.fee-table th,
.fee-table td {
    padding: 15px;
    text-align: left;
}

.fee-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

.fee-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.fee-table tbody tr:hover {
    background-color: #e3f2fd;
    transition: background-color 0.3s ease;
}

.fee-table td {
    border-bottom: 1px solid #dee2e6;
}

.amount {
    font-weight: bold;
    color: #27ae60;
    text-align: right;
}

.warning {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.info {
    background-color: #d1ecf1;
    border: 1px solid #b7d4ea;
    color: #0c5460;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

.footer p {
    margin: 5px 0;
    opacity: 0.8;
}

.section-number {
    background-color: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 0;
    }
    
    .header {
        padding: 30px 15px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .header .subtitle {
        font-size: 1.1em;
    }
    
    .content {
        padding: 20px;
    }
    
    .toc,
    .section {
        padding: 20px;
    }
    
    .fee-table {
        font-size: 0.9em;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }
    
    .header .subtitle {
        font-size: 1em;
    }
    
    .section h2 {
        font-size: 1.5em;
    }
    
    .fee-table {
        font-size: 0.8em;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 8px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .header {
        background: #2c3e50 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .toc a {
        color: #000 !important;
        text-decoration: underline;
    }
    
    .section {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}