.piq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f8fafc;
    min-height: 100vh;
}

.piq-header {
    background: #1e3a8a;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.piq-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.piq-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    width: 35px;
    height: 35px;
}

.piq-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

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

.form-section h3 {
    color: #1e3a8a;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-row input,
.form-row select,
textarea {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row select:focus,
textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

textarea {
    width: 100%;
    resize: vertical;
    min-height: 80px;
}

.declaration {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.form-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions .btn.primary {
    background: #1e3a8a;
    color: white;
    border: none;
}

.form-actions .btn.primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.form-actions .btn.secondary {
    background: #6b7280;
    color: white;
    border: none;
}

.form-actions .btn.secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.education-table {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.table-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #1e3a8a;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.table-header span {
    padding: 10px 5px;
    border-right: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.table-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #e2e8f0;
}

.table-row input, .table-row select {
    border: none;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 8px 5px;
    font-size: 0.8rem;
}

.document-checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.document-checklist label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 6px;
}

.signature-section {
    margin-bottom: 20px;
}

.signature-upload {
    margin-bottom: 20px;
    padding: 15px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    text-align: center;
}

.signature-upload h4 {
    color: #1e3a8a;
    margin-bottom: 10px;
    font-size: 1rem;
}

.signature-upload input[type="file"] {
    margin-bottom: 10px;
}

.signature-preview {
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signature-preview img {
    border-radius: 4px;
}

.form-section h4 {
    color: #374151;
    font-size: 1rem;
    margin: 15px 0 10px 0;
    font-weight: 500;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.upload-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-item:hover {
    border-color: #1e3a8a;
    background: #f1f5f9;
}

.upload-item label {
    display: block;
    color: #1e3a8a;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
}

.upload-item label i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.upload-item input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.upload-item input[type="file"]::-webkit-file-upload-button {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.file-info {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: normal;
}

@media (max-width: 1024px) {
    .piq-container {
        padding: 15px;
    }
    
    .upload-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .piq-container {
        padding: 10px;
    }
    
    .piq-header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .piq-header h1 {
        font-size: 1.5rem;
    }
    
    .piq-header p {
        font-size: 0.9rem;
    }
    
    .piq-form {
        padding: 20px;
    }
    
    .form-section {
        margin-bottom: 25px;
    }
    
    .form-section h3 {
        font-size: 1.1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .table-header, .table-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .table-header {
        display: none;
    }
    
    .table-row {
        background: #f8fafc;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }
    
    .table-row input, .table-row select {
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        margin-bottom: 8px;
        width: 100%;
    }
    
    .upload-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .upload-item {
        padding: 15px;
    }
    
    .signature-upload {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .piq-container {
        padding: 8px;
    }
    
    .piq-header {
        padding: 12px;
        border-radius: 8px;
    }
    
    .piq-header h1 {
        font-size: 1.3rem;
        margin-bottom: 3px;
    }
    
    .piq-header p {
        font-size: 0.85rem;
    }
    
    .close-btn {
        width: 30px;
        height: 30px;
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
    }
    
    .piq-form {
        padding: 15px;
        border-radius: 8px;
    }
    
    .form-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .form-row input,
    .form-row select,
    textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .form-actions .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    .declaration {
        padding: 15px;
    }
    
    .upload-item {
        padding: 12px;
    }
    
    .upload-item label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .upload-item input[type="file"] {
        padding: 6px;
        font-size: 0.85rem;
    }
    
    .file-info {
        font-size: 0.75rem;
    }
}