/* ===== PDF Form Collector – Frontend Styles ===== */

.pfc-wrapper {
    max-width: 900px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* PDF Viewer */
.pfc-pdf-viewer {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pfc-pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #2c3e50;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.pfc-pdf-download {
    color: #a8d8ea;
    text-decoration: none;
    font-size: 13px;
    font-weight: normal;
    transition: color 0.2s;
}
.pfc-pdf-download:hover { color: #fff; }

.pfc-pdf-iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* Form Section */
.pfc-form-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 35px 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.pfc-form-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

.pfc-form-subtitle {
    margin: 0 0 28px;
    color: #6c757d;
    font-size: 14px;
}

/* Fields */
.pfc-field-wrap {
    margin-bottom: 22px;
}

.pfc-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
    color: #343a40;
}

.pfc-required {
    color: #e53e3e;
    margin-left: 3px;
}

.pfc-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ced4da;
    border-radius: 7px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.pfc-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,0.12);
}

.pfc-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.pfc-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Checkboxes */
.pfc-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pfc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
}

.pfc-checkbox {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: #2271b1;
}

/* Signature */
.pfc-signature-wrap {}
.pfc-signature-input {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 18px;
    color: #1a3a6e;
    letter-spacing: 1px;
    border-bottom: 2px solid #2271b1 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    padding: 8px 4px !important;
    box-shadow: none !important;
    background: transparent !important;
}
.pfc-sig-note {
    margin: 6px 0 0;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Notices */
.pfc-notice {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.pfc-error   { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }
.pfc-success { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }

/* Submit */
.pfc-submit-wrap {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.pfc-submit-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.pfc-submit-btn:hover:not(:disabled) {
    background: #1a5c94;
    transform: translateY(-1px);
}

.pfc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
    .pfc-form-section { padding: 24px 20px; }
    .pfc-pdf-iframe   { height: 320px; }
}
