.ptfinder-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ptfinder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.ptfinder-container {
    position: relative;
    max-width: 600px;
    max-height: 90vh;
    margin: 5vh auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.ptfinder-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.ptfinder-close:hover {
    color: #000;
}

.ptfinder-content {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.ptfinder-content h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #111;
}

.ptfinder-subtitle {
    color: #666;
    margin: 0 0 32px 0;
    font-size: 16px;
}

.ptfinder-field {
    margin-bottom: 24px;
}

.ptfinder-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.ptfinder-field input[type="text"],
.ptfinder-field input[type="email"],
.ptfinder-field input[type="tel"],
.ptfinder-field select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ptfinder-field input:focus,
.ptfinder-field select:focus {
    outline: none;
    border-color: #111;
}

.ptfinder-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ptfinder-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.ptfinder-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ptfinder-submit {
    width: 100%;
    padding: 16px;
    background: #111;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ptfinder-submit:hover {
    background: #333;
}

.ptfinder-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

.ptfinder-error {
    color: #d32f2f;
    margin-top: 16px;
    padding: 12px;
    background: #ffebee;
    border-radius: 8px;
    display: none;
}

.ptfinder-error:not(:empty) {
    display: block;
}

.ptfinder-success {
    text-align: center;
}

.ptfinder-trainer-card {
    background: #f8f8f8;
    padding: 32px;
    border-radius: 12px;
    margin: 24px 0;
}

.ptfinder-trainer-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
}

.ptfinder-trainer-card h3 {
    font-size: 24px;
    margin: 0 0 8px 0;
    color: #111;
}

.ptfinder-match-reason {
    font-size: 18px;
    color: #666;
    margin: 16px 0;
    font-style: italic;
}

.ptfinder-specialties {
    color: #444;
    margin: 12px 0;
}

.ptfinder-bio {
    color: #666;
    line-height: 1.6;
    margin: 16px 0 0 0;
    text-align: left;
}

.ptfinder-next-steps {
    font-size: 16px;
    color: #666;
    margin: 24px 0;
}

.ptfinder-cta-section {
    margin: 32px 0;
    padding: 24px;
    background: #f8f8f8;
    border-radius: 12px;
}

.ptfinder-cta-section h3 {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: #111;
}

.ptfinder-cta-text {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 14px;
}

.ptfinder-payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ptfinder-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    display: block;
}

.ptfinder-btn-payment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 24px;
    text-align: left;
    position: relative;
    border: 2px solid transparent;
}

.ptfinder-btn-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
    will-change: transform;
}

.ptfinder-payment-desc {
    display: block;
    font-size: 13px;
    font-weight: 400;
    margin-top: 4px;
    opacity: 0.9;
}

.ptfinder-btn-primary {
    background: #111;
    color: white;
}

.ptfinder-btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ptfinder-btn-secondary {
    background: white;
    color: #111;
    border: 2px solid #111;
}

.ptfinder-btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.ptfinder-btn-link {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    margin-top: 16px;
    text-decoration: underline;
}

.ptfinder-btn-link:hover {
    color: #111;
}

.ptfinder-call-form {
    margin-top: 24px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    text-align: left;
}

.ptfinder-call-form h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #111;
}

.ptfinder-form-hint {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.ptfinder-field-compact {
    margin-bottom: 16px;
}

.ptfinder-field-compact label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.ptfinder-field-compact input,
.ptfinder-field-compact select,
.ptfinder-field-compact textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.ptfinder-field-compact input:focus,
.ptfinder-field-compact select:focus,
.ptfinder-field-compact textarea:focus {
    outline: none;
    border-color: #111;
}

.ptfinder-success-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 24px 0;
}

.ptfinder-success-hint {
    font-size: 14px;
    color: #999;
    margin: 16px 0 24px 0;
}

/* Demo Mode Styles */
.ptfinder-demo-badge {
    background: #FFF3E0;
    border: 1px solid #FFB74D;
    color: #E65100;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.ptfinder-email-previews {
    margin-top: 40px;
    border-top: 2px solid #f0f0f0;
    padding-top: 30px;
}

.ptfinder-email-preview-item {
    margin-bottom: 16px;
}

.ptfinder-email-preview-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.ptfinder-email-preview-toggle:hover {
    background: #e9ecef;
    border-color: #111;
}

.ptfinder-email-preview-content {
    margin-top: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.ptfinder-toggle-icon {
    font-size: 12px;
    color: #666;
}

@media (max-width: 640px) {
    .ptfinder-container {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .ptfinder-content {
        padding: 24px;
        max-height: calc(100vh - 48px);
    }
    
    .ptfinder-btn {
        font-size: 15px;
        padding: 14px 20px;
    }
}
