@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600&display=swap');

.tzf-form-wrapper {
    font-family: 'Polin', 'Rubik', Arial, sans-serif;
    direction: rtl;
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 48px 16px;
    background: #f8f9fb;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}

.tzf-pdf-content { background: transparent; }

.tzf-form-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.tzf-form-logo { max-width: 130px; margin-bottom: 16px; }
.tzf-law-title { font-size: 13px; color: rgba(0,0,0,0.45); margin: 3px 0; line-height: 1.7; font-weight: 400; }
.tzf-form-number { font-size: 13px; font-weight: 500; margin: 10px 0 4px; color: rgba(0,0,0,0.65); }
.tzf-regulation { font-size: 12px; color: rgba(0,0,0,0.35); }
.tzf-form-title { font-size: 20px; font-weight: 600; margin: 14px 0 0; color: rgba(0,0,0,0.9); }

.tzf-section {
    margin-bottom: 16px;
    padding: 28px 32px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.tzf-section:last-of-type { margin-bottom: 0; }
.tzf-section:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

.tzf-text {
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 500;
    color: rgba(0,0,0,0.85);
    background: none;
    border: none;
    padding: 0;
}

.tzf-text-note {
    font-size: 14px;
    color: rgba(0,0,0,0.7);
    font-weight: 400;
    margin-top: 12px;
}

.tzf-fields-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tzf-field {
    display: flex;
    flex-direction: column-reverse;
    flex: 1;
    min-width: 150px;
}

.tzf-field label {
    font-size: 11px;
    color: rgba(0,0,0,0.35);
    margin-top: 6px;
    margin-bottom: 0;
    text-align: right;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.tzf-field:focus-within label { color: rgba(0,0,0,0.7); }

.tzf-field input[type="text"],
.tzf-field input[type="date"] {
    border: none;
    border-bottom: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 0;
    padding: 8px 2px;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
    text-align: right;
    outline: none;
    transition: border-color 0.25s;
    color: rgba(0,0,0,0.85);
}

.tzf-field input[type="text"]:focus,
.tzf-field input[type="date"]:focus {
    border-bottom-color: rgba(0,0,0,0.6);
}

.tzf-upload-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tzf-upload-card {
    flex: 1;
    min-width: 200px;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 20px 16px;
    background: #fff;
    text-align: center;
    transition: all 0.25s ease;
}

.tzf-upload-card:hover {
    border-color: rgba(0,0,0,0.18);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.tzf-upload-icon { display: none; }

.tzf-upload-title {
    font-size: 13px;
    font-weight: 500;
    color: rgba(0,0,0,0.75);
    margin-bottom: 14px;
}

.tzf-upload-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.tzf-btn-upload, .tzf-btn-camera {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1.5px solid;
}

.tzf-btn-upload { background: #fff; border-color: rgba(0,0,0,0.18); color: rgba(0,0,0,0.65); }
.tzf-btn-upload:hover { border-color: rgba(0,0,0,0.5); color: rgba(0,0,0,0.9); }
.tzf-btn-camera { background: #fff; border-color: rgba(232,83,58,0.3); color: #e8533a; }
.tzf-btn-camera:hover { background: #e8533a; color: #fff; border-color: #e8533a; }

.tzf-upload-status { display: none; }

.tzf-attached-status {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.tzf-signature-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.tzf-signature-box label {
    font-size: 11px;
    color: rgba(0,0,0,0.35);
    margin-bottom: 8px;
    font-weight: 400;
}

#tzf-signature-canvas {
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    cursor: crosshair;
    background: #fafafa;
    width: 100%;
    max-width: 300px;
    height: 80px;
    transition: border-color 0.2s;
}

#tzf-signature-canvas:hover { border-color: rgba(0,0,0,0.25); }

#tzf-clear-signature {
    margin-top: 6px;
    font-size: 11px;
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    color: rgba(0,0,0,0.3);
    font-family: inherit;
    transition: color 0.2s;
    text-decoration: underline;
}

#tzf-clear-signature:hover { color: #e8533a; }

.tzf-footnote {
    font-size: 11px;
    color: rgba(0,0,0,0.3);
    margin: 8px 0 0;
    padding: 0;
}

.tzf-submit-row {
    text-align: center;
    margin-top: 12px;
    padding-bottom: 20px;
}

@keyframes tzf-pulse {
    0% { box-shadow: 0 0 0 0 rgba(232,83,58,0.3); }
    70% { box-shadow: 0 0 0 10px rgba(232,83,58,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,83,58,0); }
}

.tzf-submit-btn {
    background: #e8533a !important;
    color: #ffffff !important;
    border: none;
    padding: 15px 64px;
    font-size: 16px;
    font-family: inherit;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    animation: tzf-pulse 2.5s infinite;
}

.tzf-submit-btn:hover {
    background: #1a2b4a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    animation: none;
    box-shadow: 0 8px 24px rgba(26,43,74,0.2);
}

@media (max-width: 768px) {
    .tzf-form-wrapper {
        width: 100% !important;
        padding: 30px 20px 16px !important;
    }
    .tzf-section {
        padding: 20px 16px !important;
    }
    .tzf-signature-section .tzf-fields-row {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .tzf-signature-section .tzf-fields-row .tzf-field {
        order: -1 !important;
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }
    .tzf-signature-section .tzf-signature-box {
        order: 1 !important;
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }
    #tzf-signature-canvas {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: 180px !important;
    }
}

.tzf-success-box {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    max-width: 480px;
    margin: 40px auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.tzf-success-icon { font-size: 56px; margin-bottom: 20px; }
.tzf-success-box h2 { color: #1a2b4a; font-size: 24px; margin-bottom: 10px; font-weight: 600; }
.tzf-success-sub { color: rgba(0,0,0,0.4); font-size: 14px; }