* {
    font-family: 'Inter', sans-serif;
}

@media print {
    body * {
        visibility: hidden;
    }

    .affidavit-print-area,
    .affidavit-print-area * {
        visibility: visible;
    }

    .affidavit-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0.5in;
        background: white;
    }

    .no-print,
    .no-print *,
    .stamp-image-container {
        display: none !important;
    }

    @page {
        size: A4;
        margin: 0.5in;
    }
}

.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    height: calc(100vh - 140px);
    position: sticky;
    top: 80px;
}

.preview-container {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 20px;
    height: calc(100vh - 140px);
    position: sticky;
    top: 80px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.a4-paper {
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 1024px) {
    .a4-paper {
        max-width: 100%;
        min-height: auto;
    }

    .form-container,
    .preview-container {
        height: auto;
        min-height: 500px;
        position: relative;
        top: 0;
    }
}

.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 5px;
    background: #e5e7eb;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.stamp-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stamp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stamp-card.active {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.02);
}

.toast {
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.affidavit-content {
    line-height: 1.6;
    font-size: 11pt;
    text-align: justify;
}

.affidavit-content h1 {
    font-size: 16pt;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.signature-line {
    border-top: 1px solid #000;
    width: 200px;
    margin-top: 40px;
    padding-top: 8px;
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #f8fafc;
}

@media (max-width: 1280px) {
    .affidavit-content {
        font-size: 10pt;
    }
}