/**
 * OVZA Notary Pages CSS
 * Styles for options, verify, and thank you pages
 */

/* Options Page */
.ovza-options-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ovza-options-header {
    text-align: center;
    margin-bottom: 30px;
}

.ovza-options-header h2 {
    color: #148a64;
    margin: 0 0 10px 0;
    font-size: 26px;
}

.ovza-options-header p {
    color: #666;
    margin: 0;
    font-size: 15px;
}

/* Step indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.step-indicator .step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.step-indicator .step.active {
    background: #148a64;
    color: white;
}

.step-indicator .step.completed {
    background: #4caf50;
    color: white;
}

.step-indicator .step.inactive {
    background: #e0e0e0;
    color: #666;
}

.step-indicator .step-arrow {
    color: #ccc;
    font-size: 18px;
}

/* Credits Box */
.notary-credits-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #148a64;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
    text-align: center;
}

.credits-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.credits-label .count {
    color: #148a64;
    font-size: 22px;
}

.credits-hint {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* Person Cards */
.person-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.person-card:hover {
    border-color: #148a64;
}

.person-card.has-selection {
    border-color: #4caf50;
}

.person-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.person-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.person-name .icon {
    width: 34px;
    height: 34px;
    background: #148a64;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.selection-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    display: none;
}

.selection-badge.show {
    display: inline-block;
}

.selection-badge.notary {
    background: #e3f2fd;
    color: #1565c0;
}

.selection-badge.upload {
    background: #e8f5e9;
    color: #2e7d32;
}

.selection-badge.later {
    background: #fff3e0;
    color: #e65100;
}

/* Options */
.person-options {
    padding: 15px 18px;
}

.option-row {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-row:hover:not(.disabled) {
    border-color: #148a64;
    background: #f8fff9;
}

.option-row.selected {
    border-color: #148a64;
    background: #e8f5e9;
}

.option-row.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.option-row input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #148a64;
}

.option-row .option-icon {
    font-size: 18px;
    margin-right: 10px;
}

.option-row .option-text {
    flex: 1;
}

.option-row .option-text strong {
    display: block;
    color: #333;
    margin-bottom: 2px;
    font-size: 14px;
}

.option-row .option-text span {
    font-size: 12px;
    color: #666;
}

.option-row .credit-badge {
    background: #148a64;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

/* Continue button */
.continue-section {
    margin-top: 25px;
    text-align: center;
}

.continue-btn {
    padding: 14px 45px;
    background: #148a64;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.continue-btn:hover:not(:disabled) {
    background: #0f6d4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20,138,100,0.3);
}

.continue-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.validation-message {
    margin-top: 12px;
    padding: 10px 18px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 13px;
}

/* Verify Page */
.ovza-verify-wrapper {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ovza-verify-header {
    text-align: center;
    margin-bottom: 25px;
}

.ovza-verify-header h2 {
    color: #148a64;
    margin: 0 0 10px 0;
    font-size: 26px;
}

.ovza-verify-header p {
    color: #666;
    margin: 0;
    font-size: 15px;
}

/* Summary bar */
.summary-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.summary-item .count {
    background: #148a64;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.summary-item.notary .count { background: #1565c0; }
.summary-item.upload .count { background: #2e7d32; }
.summary-item.later .count { background: #e65100; }

/* Verify cards */
.verify-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.verify-card.completed {
    border-color: #4caf50;
}

.verify-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.verify-card.completed .verify-card-header {
    background: #e8f5e9;
}

.person-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.person-info .method-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.person-info .method-icon.notary { background: #1565c0; }
.person-info .method-icon.upload { background: #2e7d32; }

.person-info .details .name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.person-info .details .method {
    font-size: 12px;
    color: #666;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.ready {
    background: #e3f2fd;
    color: #1565c0;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.expand-icon {
    font-size: 18px;
    color: #666;
    transition: transform 0.3s;
}

.verify-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.verify-card-content {
    padding: 18px;
    display: none;
}

.verify-card.expanded .verify-card-content {
    display: block;
}

/* Generate button */
.generate-btn {
    width: 100%;
    padding: 14px;
    background: #1565c0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.generate-btn:hover:not(:disabled) {
    background: #0d47a1;
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Notary result */
.notary-result .success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 12px;
}

.notary-result .success-message h4 {
    margin: 0 0 8px 0;
    color: #155724;
    font-size: 14px;
}

.notary-result .link-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
}

.notary-result .link-box label {
    font-size: 11px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.notary-result .link-box a {
    color: #148a64;
    word-break: break-all;
    font-family: monospace;
    font-size: 12px;
}

.notary-result .link-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.notary-result .link-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.notary-result .copy-btn {
    background: #4caf50;
    color: white;
}

.notary-result .open-btn {
    background: #148a64;
    color: white;
}

/* Upload section */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upload-field label {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

.file-input-wrapper {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-input-wrapper:hover {
    border-color: #148a64;
    background: #f8fff9;
}

.file-input-wrapper.has-file {
    border-color: #4caf50;
    border-style: solid;
    background: #e8f5e9;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-input-wrapper .placeholder {
    color: #666;
    font-size: 13px;
}

.file-input-wrapper .filename {
    color: #4caf50;
    font-weight: 600;
    font-size: 13px;
}

.confirm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.confirm-checkbox input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #148a64;
}

.upload-btn {
    width: 100%;
    padding: 14px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.upload-btn:hover:not(:disabled) {
    background: #1b5e20;
}

.upload-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.upload-result {
    text-align: center;
    padding: 20px;
}

.upload-result .success-icon {
    font-size: 40px;
    color: #4caf50;
    margin-bottom: 10px;
}

/* Complete button */
.complete-section {
    margin-top: 25px;
    text-align: center;
}

.complete-btn {
    padding: 14px 45px;
    background: #148a64;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.complete-btn:hover:not(:disabled) {
    background: #0f6d4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20,138,100,0.3);
}

.complete-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pending-message {
    margin-top: 12px;
    font-size: 13px;
    color: #856404;
}

/* Help section */
.help-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.help-section a {
    color: #148a64;
    text-decoration: none;
    font-size: 13px;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner .spinner {
    width: 45px;
    height: 45px;
    border: 5px solid #e0e0e0;
    border-top-color: #148a64;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Confirmation Modal */
.confirm-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-modal-dialog {
    background: white;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.confirm-modal-header {
    padding: 20px 24px 0;
    text-align: center;
}

.confirm-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.confirm-modal-body {
    padding: 20px 24px;
}

.confirm-person-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.confirm-person-icon {
    font-size: 28px;
}

.confirm-person-details .confirm-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.confirm-person-details .confirm-email {
    font-size: 13px;
    color: #666;
}

.confirm-consequences ul {
    margin: 0;
    padding-left: 20px;
}

.confirm-consequences li {
    margin-bottom: 6px;
    font-size: 14px;
}

.confirm-modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-btn-cancel {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.confirm-btn-confirm {
    padding: 10px 20px;
    background: #1565c0;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .ovza-options-wrapper,
    .ovza-verify-wrapper {
        padding: 15px;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .person-card-header,
    .verify-card-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .option-row {
        flex-wrap: wrap;
        padding: 14px;
    }
    
    .continue-btn,
    .complete-btn {
        width: 100%;
        padding: 16px;
    }
    
    .notary-result .link-buttons {
        flex-direction: column;
    }
    
    .confirm-modal-footer {
        flex-direction: column;
    }
    
    .confirm-btn-cancel,
    .confirm-btn-confirm {
        width: 100%;
        padding: 12px;
    }
}
